Skip to content

Commit 4c40784

Browse files
committed
[ci skip] chore: fix publish.yml
1 parent c993d53 commit 4c40784

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
@@ -22,8 +22,10 @@ jobs:
2222
registry-url: https://registry.npmjs.org/
2323
- run: pnpm install
2424
- run: pnpm build
25-
- run: pnpm publish
25+
- name: Publish
2626
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
28-
GITHUB_TOKEN: ${{ secrets.PAT }}
29-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
28+
run: |
29+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
30+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
31+
pnpm publish --no-git-checks --access public

0 commit comments

Comments
 (0)