Skip to content

Commit

Permalink
ci: only set auth token in release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Jun 20, 2023
1 parent 4d89ddf commit 510920d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- name: Setup npmrc
# https://github.com/changesets/action/issues/98#issuecomment-917292485
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc

- name: Install Dependencies
run: pnpm i

Expand Down
5 changes: 1 addition & 4 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# https://github.com/changesets/action/issues/98#issuecomment-917292485
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

registry=https://registry.npmjs.org/
hoist=false
hoist=false

0 comments on commit 510920d

Please sign in to comment.