We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be131e8 commit b2db0a2Copy full SHA for b2db0a2
1 file changed
.github/workflows/publish.yml
@@ -1,24 +1,24 @@
1
name: Publish
2
-
3
on:
4
release:
5
types: [created]
6
7
jobs:
8
publish-npm:
9
runs-on: ubuntu-latest
10
steps:
11
- - uses: actions/checkout@v3
12
- - uses: actions/setup-node@v3
+ - name: Checkout the project
+ uses: actions/checkout@v3
+ - name: Use Node.js 16.x (LTS)
+ uses: actions/setup-node@v3
13
with:
14
- node-version: 14
+ node-version: 16.x
15
registry-url: https://registry.npmjs.org/
16
cache: npm
17
- run: npm ci
18
- run: npm test
19
- run: npm version ${TAG_NAME} --git-tag-version=false
20
env:
21
TAG_NAME: ${{ github.event.release.tag_name }}
22
- - run: npm whoami; npm --ignore-scripts publish
+ - run: npm whoami; npm publish --access public
23
24
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
0 commit comments