File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,18 @@ jobs:
2929 - name : Install Dependencies
3030 run : pnpm install
3131
32- - name : Configure npm
32+ - name : Setup npm authentication
3333 run : |
34- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
35- echo "registry=https://registry.npmjs.org/" >> .npmrc
36- echo "always-auth=true" >> .npmrc
37- echo "@aci-sdk:registry=https://registry.npmjs.org/" >> .npmrc
38- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
39- cat .npmrc
34+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
35+ echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
36+ echo "always-auth=true" >> ~/.npmrc
37+ echo "@aci-sdk:registry=https://registry.npmjs.org/" >> ~/.npmrc
38+ chmod 600 ~/.npmrc
4039
4140 - name : Verify npm authentication
42- run : npm whoami
41+ run : |
42+ npm config list
43+ npm whoami --registry https://registry.npmjs.org/
4344
4445 - name : Create Release Pull Request or Publish
4546 id : changesets
You can’t perform that action at this time.
0 commit comments