Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit d432cc4

Browse files
authored
Create publish.yml
1 parent a249f93 commit d432cc4

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
if: contains(github.ref, 'refs/tags/v')
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: 13
14+
- run: yarn
15+
- run: yarn test
16+
- run: yarn build
17+
- name: Publish package
18+
run: |
19+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
20+
yarn publish --access public

0 commit comments

Comments
 (0)