Skip to content

Commit 65929d0

Browse files
authored
update publish action
1 parent 7ce3efe commit 65929d0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ jobs:
1414
node-version: 16
1515
registry-url: https://registry.npmjs.org/
1616
cache: npm
17-
18-
- env:
19-
TAG_NAME: ${{ github.event.release.tag_name }}
20-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21-
run: |
22-
npm ci
23-
npm test
17+
- run: npm ci
18+
- run: npm test
19+
- run: |
20+
echo "Publishing $TAG_NAME"
2421
npm version ${TAG_NAME} --git-tag-version=false
25-
npm whoami; npm --ignore-scripts publish
22+
env:
23+
TAG_NAME: ${{github.event.release.tag_name}}
24+
- run: npm whoami; npm --ignore-scripts publish
25+
env:
26+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)