Skip to content

Commit 009a016

Browse files
committed
feat: publish to npm
1 parent e42699b commit 009a016

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,20 @@ jobs:
3838
- run: yarn install --frozen-lockfile
3939
- run: yarn ci:test:coverage
4040
- uses: codecov/codecov-action@v1
41+
42+
publish-to-npm:
43+
needs: test
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v2
47+
- uses: actions/setup-node@v1
48+
with:
49+
node-version: 14
50+
registry-url: https://registry.npmjs.org/
51+
- run: yarn install --frozen-lockfile
52+
- run: yarn build
53+
- name: Semantic Release
54+
uses: cycjimmy/semantic-release-action@v2
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
57+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 commit comments

Comments
 (0)