Skip to content

Commit 06fb765

Browse files
Update release.yml
1 parent b562b54 commit 06fb765

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)