We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 281abb2 commit fc55f5aCopy full SHA for fc55f5a
1 file changed
.github/workflows/release.yml
@@ -33,12 +33,12 @@ jobs:
33
registry-url: 'https://registry.npmjs.org/'
34
35
- 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
+ run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
+ env:
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39
40
- - name: Show npm whoami
41
- run: npm whoami
+ - name: Test npm auth
+ run: npm whoami || echo "🔒 Auth failed — token is likely invalid or not scoped correctly"
42
43
- name: Install dependencies
44
run: npm ci
@@ -66,3 +66,4 @@ jobs:
66
npm publish --access public
67
env:
68
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
69
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments