Skip to content

Commit

Permalink
fix(npm-publish): setup node with registry url (#8841)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
caugner committed May 11, 2023
1 parent 8e74e5f commit 660a28b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
with:
node-version: 18
cache: yarn
registry-url: "https://registry.npmjs.org"

- name: Install
if: steps.release.outputs.release_created
Expand Down Expand Up @@ -60,6 +61,6 @@ jobs:

- name: Publish
if: steps.release.outputs.release_created
run: npm publish --access public
run: npm publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 660a28b

Please sign in to comment.