Skip to content

Commit 42eda78

Browse files
committed
build: Authenticate yarn publishing using .yarnrc.yml
1 parent eeb2fb0 commit 42eda78

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/npm_publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ jobs:
2222
- name: Install dependencies
2323
run: yarn install --immutable
2424

25+
- name: Authentication
26+
run: |
27+
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
2531
- name: Check package versions and publish
2632
run: yarn publish
27-
env:
28-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)