Skip to content

Commit fc55f5a

Browse files
committed
chore: update npm authentication in release workflow
1 parent 281abb2 commit fc55f5a

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
registry-url: 'https://registry.npmjs.org/'
3434

3535
- name: Configure npm auth and registry for scope
36-
run: |
37-
echo "@chimp-stack:registry=https://registry.npmjs.org/" > ~/.npmrc
38-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
36+
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
37+
env:
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3939

40-
- name: Show npm whoami
41-
run: npm whoami
40+
- name: Test npm auth
41+
run: npm whoami || echo "🔒 Auth failed — token is likely invalid or not scoped correctly"
4242

4343
- name: Install dependencies
4444
run: npm ci
@@ -66,3 +66,4 @@ jobs:
6666
npm publish --access public
6767
env:
6868
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
69+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)