Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions .github/workflows/npmjs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,14 @@ jobs:
git config --global user.name "bitgobot"

- name: Configure npmrc
if: inputs.dry-run == false
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "engine-strict=true" > ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc

- name: Setup Node.js with nvm
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"

- name: Test NPM authentication
if: inputs.dry-run == false
run: |
npm whoami --registry https://registry.npmjs.org/

- name: Switch to rel/latest branch
run: |
git checkout rel/latest
Expand All @@ -175,7 +166,9 @@ jobs:
- name: Publish new version
if: inputs.dry-run == false
run: |
yarn lerna publish --sign-git-tag --sign-git-commit --include-merged-tags --conventional-commits --conventional-graduate --verify-access --yes
yarn lerna publish --sign-git-tag --sign-git-commit --include-merged-tags --conventional-commits --conventional-graduate --yes
env:
NPM_CONFIG_PROVENANCE: true

- name: Extract published version
if: inputs.dry-run == false
Expand Down