Skip to content

Commit 5d1c31c

Browse files
authored
Merge pull request #8238 from BitGo/VL-4559
feat: migrate stable releases to trusted publishing
2 parents 75bc105 + 3c8103b commit 5d1c31c

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

.github/workflows/npmjs-release.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,23 +133,14 @@ jobs:
133133
git config --global user.name "bitgobot"
134134
135135
- name: Configure npmrc
136-
if: inputs.dry-run == false
137-
env:
138-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
139136
run: |
140137
echo "engine-strict=true" > ~/.npmrc
141-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
142138
143139
- name: Setup Node.js with nvm
144140
uses: actions/setup-node@v6
145141
with:
146142
node-version-file: ".nvmrc"
147143

148-
- name: Test NPM authentication
149-
if: inputs.dry-run == false
150-
run: |
151-
npm whoami --registry https://registry.npmjs.org/
152-
153144
- name: Switch to rel/latest branch
154145
run: |
155146
git checkout rel/latest
@@ -175,7 +166,9 @@ jobs:
175166
- name: Publish new version
176167
if: inputs.dry-run == false
177168
run: |
178-
yarn lerna publish --sign-git-tag --sign-git-commit --include-merged-tags --conventional-commits --conventional-graduate --verify-access --yes
169+
yarn lerna publish --sign-git-tag --sign-git-commit --include-merged-tags --conventional-commits --conventional-graduate --yes
170+
env:
171+
NPM_CONFIG_PROVENANCE: true
179172

180173
- name: Generate version bump summary
181174
id: version-bump-summary

0 commit comments

Comments
 (0)