Skip to content

Commit c0ce9c4

Browse files
committed
build: switch to Node 24 and OIDC trusted publishing
1 parent cbdc2d6 commit c0ce9c4

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 22
20+
node-version: 24
2121

2222
- run: npm install
2323

@@ -36,7 +36,7 @@ jobs:
3636

3737
- uses: actions/setup-node@v4
3838
with:
39-
node-version: 22
39+
node-version: 24
4040

4141
- run: npm install
4242

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424

2525
permissions:
2626
contents: write
27+
id-token: write
2728

2829
jobs:
2930
prepare:
@@ -86,19 +87,19 @@ jobs:
8687

8788
- uses: actions/setup-node@v4
8889
with:
89-
node-version: 22
90+
node-version: 24
9091
registry-url: https://registry.npmjs.org
9192

93+
- run: npm install
94+
9295
- name: Set package version
9396
run: npm version "${{ needs.prepare.outputs.version }}" --no-git-tag-version
9497

9598
- name: Verify package
9699
run: npm pack --dry-run
97100

98101
- name: Publish to npm
99-
run: npm publish --provenance --access public
100-
env:
101-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
102+
run: npm publish --access public
102103

103104
- name: Download release notes
104105
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)