Skip to content

Commit

Permalink
build: Authenticate yarn publishing using .yarnrc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
reobin committed Dec 19, 2024
1 parent 02edec4 commit 7fa1c77
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ jobs:
- name: Install dependencies
run: yarn install --immutable

- name: Authentication
run: |
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Check package versions and publish
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7fa1c77

Please sign in to comment.