Skip to content

Commit d635b9c

Browse files
committed
ci(release): use trusted publishing
1 parent a265779 commit d635b9c

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
if: ${{needs.pull-request.outputs.releases_created && toJson(fromJson(needs.pull-request.outputs.paths_released)) != '[]'}}
2727
runs-on: ubuntu-24.04
2828
permissions:
29-
id-token: write # Required for trusted publishing via OIDC (https://docs.npmjs.com/trusted-publishers)
29+
id-token: write
3030
steps:
3131
- name: Checkout
3232
uses: actions/checkout@v6
@@ -55,12 +55,8 @@ jobs:
5555
run: |
5656
rm package.json
5757
mv package.json.bak package.json
58-
- name: Publish to NPM
59-
env:
60-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
61-
run: |
62-
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> ./.npmrc
63-
npm publish --provenance --access public
58+
- name: Publish to npm
59+
run: npm publish --access public --provenance
6460

6561
publish-mcp-registry:
6662
needs: [pull-request, publish-package]

0 commit comments

Comments
 (0)