File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish
2
-
3
2
on :
4
3
release :
5
4
types : [created]
6
-
7
5
jobs :
8
6
publish-npm :
9
7
runs-on : ubuntu-latest
10
8
steps :
11
- - uses : actions/checkout@v3
12
- - uses : actions/setup-node@v3
9
+ - name : Checkout the project
10
+ uses : actions/checkout@v3
11
+ - name : Use Node.js 16.x (LTS)
12
+ uses : actions/setup-node@v3
13
13
with :
14
- node-version : 14
14
+ node-version : 16.x
15
15
registry-url : https://registry.npmjs.org/
16
16
cache : npm
17
17
- run : npm ci
18
18
- run : npm test
19
19
- run : npm version ${TAG_NAME} --git-tag-version=false
20
20
env :
21
21
TAG_NAME : ${{ github.event.release.tag_name }}
22
- - run : npm whoami; npm --ignore-scripts publish
22
+ - run : npm whoami; npm publish --access public
23
23
env :
24
24
NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments