Skip to content

Commit f336787

Browse files
committed
ci: add packages:write permission for trusted publishing
1 parent c72568a commit f336787

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ jobs:
1616
- uses: oven-sh/setup-bun@v2
1717
with:
1818
bun-version: latest
19-
- uses: actions/setup-node@v4
19+
- uses: actions/setup-node@v6
2020
with:
21-
node-version: 22
22-
registry-url: https://registry.npmjs.org
21+
node-version: "24"
22+
registry-url: "https://registry.npmjs.org"
2323
- run: bun install --frozen-lockfile
2424
- run: bun run build
25-
- run: npm publish --provenance --access public
25+
- run: npm publish --access public
26+
env:
27+
NPM_CONFIG_PROVENANCE: true

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
"type": "git",
3535
"url": "https://github.com/kriasoft/srcpack.git"
3636
},
37+
"publishConfig": {
38+
"access": "public",
39+
"registry": "https://registry.npmjs.org/"
40+
},
3741
"bugs": {
3842
"url": "https://github.com/kriasoft/srcpack/issues"
3943
},

0 commit comments

Comments
 (0)