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 caefa13 commit 4edc667Copy full SHA for 4edc667
.github/workflows/pipeline.yml
@@ -30,3 +30,18 @@ jobs:
30
node-version: ${{ matrix.node-version }}
31
- run: npm ci
32
- run: npm audit
33
+ publish:
34
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
35
+ needs: [test, audit]
36
+ runs-on: ubuntu-latest
37
+ steps:
38
+ - uses: actions/checkout@v2
39
+ - name: Setup Node.js ${{ matrix.node-version }}
40
+ uses: actions/setup-node@v1
41
+ with:
42
+ node-version: 12
43
+ registry-url: https://registry.npmjs.org/
44
+ - run: npm ci
45
+ - run: npm publish --access public
46
+ env:
47
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
0 commit comments