Skip to content

Commit eb0ca19

Browse files
committed
fix: deploy workflow npm token
1 parent de4988e commit eb0ca19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
cp README.md dist/README.md
2727
2828
- name: Config
29+
env:
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2931
run: |
3032
cd dist
3133
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
3234
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
3335
3436
- name: Publish
35-
env:
36-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3737
run: |
3838
cd dist
3939
pnpm publish --access public --no-git-checks

0 commit comments

Comments
 (0)