Skip to content

Commit d525a09

Browse files
committed
ci: specify NPM registry and use NODE_AUTH_TOKEN instead of env var with long name
1 parent 1ac8dae commit d525a09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727

2828
# Set node/npm/yarn versions using volta, with optional overrides provided by the consumer
2929
- uses: volta-cli/action@v4
30+
with:
31+
registry-url: https://registry.npmjs.org
3032

3133
# Install pnpm with exact version provided by consumer or fallback to latest
3234
- name: Install PNPM
@@ -75,8 +77,8 @@ jobs:
7577

7678
- name: Publish
7779
env:
78-
"GH_TOKEN": ${{ secrets.GITHUB_TOKEN }}
79-
"npm_config_//registry.npmjs.org/:_authToken": ${{ secrets.NPM_TOKEN }}
80+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8082
run: |
8183
echo "Running pnpm lerna publish --yes"
8284
pnpm lerna publish --yes

0 commit comments

Comments
 (0)