Skip to content

Commit 8c033b5

Browse files
committed
fix: simplify release workflow - use NODE_AUTH_TOKEN env directly
Remove .npmrc creation which fails on Ubuntu runner. Use NODE_AUTH_TOKEN environment variable instead. Co-Authored-By: AliiiBenn <davidddpereiraaa6@gmail.com>
1 parent 191f7fe commit 8c033b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
- name: Publish SDK to npm
3232
run: |
3333
cd packages/sdk
34-
echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > .npmrc
3534
npm publish --include-dist --access public
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3637

3738
- name: Publish CLI to npm
3839
run: |
3940
cd packages/repofetch
40-
echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > .npmrc
4141
npm publish --include-dist --access public
4242
env:
4343
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)