We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8e047c commit 51e560eCopy full SHA for 51e560e
.github/workflows/main.yml
@@ -18,4 +18,18 @@ jobs:
18
- name: Checkout
19
uses: actions/checkout@v1
20
- name: Test
21
- run: tests/test.sh
+ run: tests/test.sh
22
+ publish:
23
+ needs: [unit-test, integration-test]
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - name: Checkout
27
+ uses: actions/checkout@v1
28
+ - name: Publish
29
+ if: startsWith(github.ref, 'refs/tags/')
30
+ run: |
31
+ npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
32
+ npm publish
33
+ env:
34
+ CI: true
35
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
0 commit comments