Skip to content

Commit 18d0cef

Browse files
authored
Switch to trusted publishing (#492)
1 parent 5cbac2c commit 18d0cef

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.changeset/light-mirrors-tickle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"types-react-codemod": patch
3+
---
4+
5+
Switch to trusted publishing

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
jobs:
99
release:
1010
name: Release
11+
environment: production
12+
permissions:
13+
id-token: write # Required for OIDC
14+
# Changesets creates a commit and PR for the release
15+
contents: write
16+
pull-requests: write
1117
runs-on: ubuntu-latest
1218
steps:
1319
- name: Checkout Repo
@@ -31,7 +37,6 @@ jobs:
3137
publish: yarn release
3238
env:
3339
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
3540

3641
- name: Debug release
3742
# Shows files included in release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
"access": "public"
4848
},
4949
"volta": {
50-
"node": "20.18.1"
50+
"node": "24.11.1"
5151
}
5252
}

0 commit comments

Comments
 (0)