Skip to content

Commit 660a28b

Browse files
authored
fix(npm-publish): setup node with registry url (#8841)
* fix(npm-publish): setup node with registry-url This creates an `.npmrc` file that references the token from the `NODE_AUTH_TOKEN` environment variable. * Revert "fix(npm-publish): revert renaming of NPM_AUTH_TOKEN (#8831)" This reverts commit 3ccc923. * Revert "fix(npm-publish): restore --access public option (#8839)" This reverts commit c5f8c48.
1 parent 8e74e5f commit 660a28b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .github/workflows/npm-publish.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
with:
3333
node-version: 18
3434
cache: yarn
35+
registry-url: "https://registry.npmjs.org"
3536

3637
- name: Install
3738
if: steps.release.outputs.release_created
@@ -60,6 +61,6 @@ jobs:
6061

6162
- name: Publish
6263
if: steps.release.outputs.release_created
63-
run: npm publish --access public
64+
run: npm publish
6465
env:
65-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
66+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)