Skip to content

Commit 42b0ec3

Browse files
committed
fix: npm provenance (#37)
Enable OIDC for trusted publishing and npm provenance.
1 parent e3b739d commit 42b0ec3

4 files changed

Lines changed: 5236 additions & 7737 deletions

File tree

.github/workflows/cd.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ on:
99
- main
1010

1111
jobs:
12-
publish:
13-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
12+
release:
1413
runs-on: ubuntu-latest
1514
permissions:
1615
contents: write
1716
issues: write
1817
pull-requests: write
19-
id-token: write
2018

2119
steps:
2220
- name: Checkout
@@ -29,15 +27,16 @@ jobs:
2927
with:
3028
node-version: "24"
3129
cache: "npm"
30+
registry-url: https://registry.npmjs.org
3231

3332
- name: Install dependencies
3433
run: npm ci
3534

36-
- name: Build the project
35+
- name: Build
3736
run: npm run build
3837

3938
- name: Release
4039
env:
4140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
NPM_CONFIG_PROVENANCE: true
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4342
run: npx semantic-release

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
node-version: "24"
2323
cache: "npm"
24+
registry-url: https://registry.npmjs.org
2425

2526
- name: Install dependencies
2627
run: npm ci

0 commit comments

Comments
 (0)