Skip to content

Commit d5f2d8a

Browse files
authored
Merge pull request #57 from sectsect/feature/oidc-trusted-publishing
chore: migrate to OIDC Trusted Publishing for npm releases
2 parents e900a6f + a813d15 commit d5f2d8a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
contents: write
1212
pull-requests: write
1313
packages: write
14+
id-token: write
1415

1516
jobs:
1617
release:
@@ -28,12 +29,13 @@ jobs:
2829
- name: Setup pnpm
2930
uses: pnpm/action-setup@v4
3031
with:
31-
version: 10.22.0
32+
version: 10.25.0
3233

33-
- name: Setup Node.js 21.x
34+
- name: Setup Node.js 24.x
3435
uses: actions/setup-node@v4
3536
with:
36-
node-version: 21.x
37+
node-version: 24.x
38+
registry-url: 'https://registry.npmjs.org'
3739

3840
- name: Install Dependencies
3941
run: pnpm i --frozen-lockfile
@@ -87,7 +89,6 @@ jobs:
8789
title: 'chore: release package(s)'
8890
env:
8991
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9192

9293
# - name: Send a Slack notification if a publish happens
9394
# if: steps.changesets.outputs.published == 'true'

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
auto-install-peers = true
2+
provenance=true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
"secretlint": "^11.2.5",
3333
"turbo": "^2.6.1"
3434
},
35-
"packageManager": "pnpm@10.22.0",
35+
"packageManager": "pnpm@10.25.0",
3636
"name": "solid-hiding-header"
3737
}

0 commit comments

Comments
 (0)