Skip to content

Commit d5f77f5

Browse files
authored
chore: update CD publish step to add token to .npmrc (#448)
1 parent 4d8e795 commit d5f77f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cd.yml renamed to .github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ jobs:
5050
if: ${{ steps.release.outputs.releases_created }}
5151

5252
- env:
53-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
53+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
5454
if: ${{ steps.release.outputs.releases_created }}
5555
run: |
56-
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml
56+
echo "registry=https://registry.npmjs.org/\n//registry.npmjs.org/:_authToken=$NPM_TOKEN\n" >> ./.npmrc
5757
5858
- run: yarn lerna exec --ignore root --ignore simpleserialize.com --no-private "npm publish --access public"
5959
if: ${{ steps.release.outputs.releases_created }}

0 commit comments

Comments
 (0)