Skip to content

Commit a7ca953

Browse files
committed
using different action for npm publish
1 parent a10545d commit a7ca953

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/update-and-publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,10 @@ jobs:
7575
git push origin HEAD:main
7676
7777
- name: Publish package
78-
run: |
79-
npm publish
78+
uses: JS-DevTools/npm-publish@v1
79+
with:
80+
token: ${{ secrets.NPM_AUTH_TOKEN }}
8081
if: success()
81-
env:
82-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
8382

8483
- name: Revert package.json and package-lock.json
8584
run: |

0 commit comments

Comments
 (0)