Skip to content

Commit cdb87e7

Browse files
authored
fix(ci): use OIDC npm publish config in workflow (#19)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 89cf8ba commit cdb87e7

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,24 @@ on:
66
- '[0-9]*.[0-9]*.[0-9]*'
77

88
permissions:
9-
contents: write
10-
id-token: write # npm OIDC Trusted Publishing + provenance
9+
id-token: write
10+
contents: read
1111

1212
jobs:
1313
publish:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717

1818
- uses: pnpm/action-setup@v4
1919
with:
2020
version: 10.14.0
2121

22-
- uses: actions/setup-node@v4
22+
- uses: actions/setup-node@v6
2323
with:
24-
node-version: 20
24+
node-version: '24'
25+
registry-url: 'https://registry.npmjs.org'
26+
package-manager-cache: false
2527

2628
- name: Install dependencies
2729
run: pnpm install --prefer-frozen-lockfile

0 commit comments

Comments
 (0)