Skip to content

Commit 3a807b1

Browse files
authored
chore: setup ci for trusted publishing (#238)
1 parent 8ba6b02 commit 3a807b1

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
permissions:
1414
contents: write # to create release (changesets/action)
1515
pull-requests: write # to create pull request (changesets/action)
16+
id-token: write # to publish to npm via trusted publishing (OIDC)
1617
name: Release
1718
runs-on: macos-latest
1819
steps:
@@ -22,7 +23,8 @@ jobs:
2223
- uses: pnpm/action-setup@v4
2324
- uses: actions/setup-node@v4
2425
with:
25-
node-version: 20
26+
# trusted publishing requires npm >= 11.5.1, which ships with Node 24
27+
node-version: 24
2628
cache: pnpm
2729

2830
- name: Install dependencies
@@ -35,4 +37,3 @@ jobs:
3537
publish: pnpm ci:publish
3638
env:
3739
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

‎packages/formsnap/package.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"name": "formsnap",
33
"version": "2.0.1",
4-
"repository": "github:svecosystem/formsnap",
4+
"repository": {
5+
"type": "git",
6+
"url": "git+https://github.com/svecosystem/formsnap.git"
7+
},
58
"funding": "https://github.com/sponsors/huntabyte",
69
"scripts": {
710
"dev": "pnpm watch",

0 commit comments

Comments
 (0)