Skip to content

Commit 4e1c351

Browse files
authored
fix(npm): setup registry url and use right variable (#2090)
1 parent 98f6eb6 commit 4e1c351

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/deploy-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ jobs:
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
2525
- uses: pnpm/[email protected]
26+
2627
- name: Use Node.js
2728
uses: actions/[email protected]
2829
with:
30+
registry-url: 'https://registry.npmjs.org/'
2931
node-version: 20
3032
check-latest: true
3133
- run: pnpm install
@@ -37,7 +39,9 @@ jobs:
3739
HUSKY: 0
3840
GH_TOKEN: ${{ secrets.GH_TOKEN }}
3941

42+
# https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
4043
- name: Publish to npm
4144
run: pnpm -r publish --access public --tag latest
4245
env:
46+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4347
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)