Skip to content

Commit

Permalink
Fix CLI publish to NPM (bitwarden#3272)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalchecinski authored and rikkipitt committed Aug 16, 2022
1 parent 2f3489f commit d8a3266
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ jobs:
artifacts: bitwarden-cli-${{ env._PKG_VERSION }}-npm-build.zip

- name: Setup NPM
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
run: |
echo 'registry="https://registry.npmjs.org/"' > ./.npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ./.npmrc
env:
NPM_TOKEN: ${{ steps.retrieve-secrets.outputs.cli-npm-api-key }}

Expand All @@ -296,5 +298,5 @@ jobs:

- name: Publish NPM
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
run: npm publish --access public
run: npm publish --access public --regsitry=https://registry.npmjs.org/ --userconfig=./.npmrc

0 comments on commit d8a3266

Please sign in to comment.