Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit 832d67c

Browse files
committed
Fix npm 404 auth error on CD pipeline
Fix from: lerna/lerna#2404
1 parent 7ee7aae commit 832d67c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ jobs:
3838
- name: "Publish to npm"
3939
id: publish
4040
run: |
41+
echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > .npmrc
4142
yarn publish:all ${{ github.event.inputs.release-type }}
4243
echo "::set-output name=version::$(node --print 'require("./lerna.json").version')"
43-
env:
44-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4544
4645
- name: "Update the changelog"
4746
# Find the first line that starts with `###` or `## [<number>` from the CHANGELOG and insert the new version header before it.

0 commit comments

Comments
 (0)