Skip to content

Commit

Permalink
chore: update CD publish step to add token to .npmrc (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil authored Jan 18, 2025
1 parent 4d8e795 commit d5f77f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
if: ${{ steps.release.outputs.releases_created }}

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

0 comments on commit d5f77f5

Please sign in to comment.