Skip to content

Commit

Permalink
fix: auth issues trying to publish new version
Browse files Browse the repository at this point in the history
  • Loading branch information
ThunbergOlle committed Apr 24, 2024
1 parent 76606fb commit f8c1607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ runs:
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
always-auth: true

- name: Cache dependencies
id: yarn-cache
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: Pack package
run: yarn pack

- name: Write authtoken
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTOMATION_TOKEN }}" > ~/.npmrc

- name: Publish package
run: yarn npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit f8c1607

Please sign in to comment.