Skip to content

Commit 39e6148

Browse files
committed
ci: define npm registry in npmrc
1 parent b31d5c0 commit 39e6148

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/dev-publish.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
- uses: actions/setup-node@v4
2020
with:
2121
node-version: 22
22-
registry-url: 'https://registry.npmjs.org'
2322

2423
- name: install
2524
run: npm i
@@ -29,8 +28,8 @@ jobs:
2928

3029
- name: publish
3130
run: |
32-
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> .npmrc
31+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN\nregistry=https://registry.npmjs.org/" >> .npmrc
3332
npm version $(node --eval="process.stdout.write(require('./package.json').version)")-dev.$(git rev-parse --short HEAD) --no-git-tag-version
34-
npm publish --userconfig ./.npmrc --provenance --access=public --no-git-tag-version --tag dev
33+
npm publish --userconfig ./.npmrc --provenance --access public --no-git-tag-version --tag dev
3534
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)