Skip to content

Commit b55d6ba

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

4 files changed

Lines changed: 5235 additions & 7741 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
name: CD Pipeline
22

33
on:
4-
workflow_run:
5-
workflows: ["CI Pipeline"]
6-
types:
7-
- completed
8-
branches:
4+
push:
5+
branches:
96
- main
107

118
jobs:
129
publish:
13-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1410
runs-on: ubuntu-latest
1511
permissions:
1612
contents: write
@@ -28,6 +24,7 @@ jobs:
2824
uses: actions/setup-node@v4
2925
with:
3026
node-version: "24"
27+
registry-url: "https://registry.npmjs.org"
3128
cache: "npm"
3229

3330
- name: Install dependencies

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: CI Pipeline
22

33
on:
4-
push:
5-
branches:
6-
- main
74
pull_request:
85
branches:
96
- main
@@ -20,6 +17,7 @@ jobs:
2017
uses: actions/setup-node@v4
2118
with:
2219
node-version: "24"
20+
registry-url: "https://registry.npmjs.org"
2321
cache: "npm"
2422

2523
- name: Install dependencies

0 commit comments

Comments
 (0)