Skip to content

Commit ca19573

Browse files
authored
Merge pull request #90 from github/theinterned/fix-publish-aciton
Fix publish action
2 parents 0cd81db + 65929d0 commit ca19573

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ 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
1717
- run: npm ci
1818
- run: npm test
19-
- run: npm version ${TAG_NAME} --git-tag-version=false
19+
- run: |
20+
echo "Publishing $TAG_NAME"
21+
npm version ${TAG_NAME} --git-tag-version=false
2022
env:
21-
TAG_NAME: ${{ github.event.release.tag_name }}
23+
TAG_NAME: ${{github.event.release.tag_name}}
2224
- run: npm whoami; npm --ignore-scripts publish
2325
env:
24-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
26+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)