Skip to content

Commit 7ce3efe

Browse files
authored
update publish action
1 parent 0cd81db commit 7ce3efe

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 14
14+
node-version: 16
1515
registry-url: https://registry.npmjs.org/
1616
cache: npm
17-
- run: npm ci
18-
- run: npm test
19-
- run: npm version ${TAG_NAME} --git-tag-version=false
20-
env:
17+
18+
- env:
2119
TAG_NAME: ${{ github.event.release.tag_name }}
22-
- run: npm whoami; npm --ignore-scripts publish
23-
env:
24-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21+
run: |
22+
npm ci
23+
npm test
24+
npm version ${TAG_NAME} --git-tag-version=false
25+
npm whoami; npm --ignore-scripts publish

0 commit comments

Comments
 (0)