Skip to content

Commit 8a875bc

Browse files
authored
Merge pull request #754 from mnfst/fix/release-trusted-publishing
fix: use npm trusted publishing (OIDC) for release workflow
2 parents 0abd9b1 + ae91146 commit 8a875bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.changeset/silver-ears-watch.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
permissions:
88
contents: write
99
pull-requests: write
10+
id-token: write
1011

1112
jobs:
1213
release:
@@ -17,7 +18,6 @@ jobs:
1718
with:
1819
node-version: 22
1920
cache: npm
20-
registry-url: https://registry.npmjs.org
2121
- run: npm ci
2222
- run: npm run build
2323
- uses: changesets/action@v1
@@ -27,4 +27,4 @@ jobs:
2727
title: "chore: version packages"
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)