Skip to content

Commit ef7192d

Browse files
committed
fix: add npm auth token
1 parent ae6813e commit ef7192d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ jobs:
2828
- name: Install Foundry
2929
uses: foundry-rs/foundry-toolchain@v1
3030

31+
- name: Authentication
32+
run: |
33+
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
3137
- name: Install dependencies
3238
run: yarn
3339

@@ -36,6 +42,8 @@ jobs:
3642

3743
- name: Publish packages
3844
run: yarn workspaces foreach -A --no-private npm publish --tolerate-republish --access public
45+
env:
46+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3947

4048
- run: yarn version:release
4149
env:

0 commit comments

Comments
 (0)