Skip to content

Commit ea0c883

Browse files
committed
chore: support trusted publishing
1 parent f8111ff commit ea0c883

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/npm-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
needs: test
2525
runs-on: ubuntu-latest
2626
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
27+
permissions:
28+
contents: write
29+
id-token: write
2730
steps:
2831
- uses: actions/checkout@v4
2932
with:
@@ -32,9 +35,11 @@ jobs:
3235
with:
3336
node-version: "24"
3437
cache: "npm"
38+
registry-url: "https://registry.npmjs.org"
3539
- run: npm ci
3640
- run: npm run build
3741
- name: Release
3842
env:
3943
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
NPM_CONFIG_PROVENANCE: true
4045
run: npx semantic-release

0 commit comments

Comments
 (0)