Skip to content

Commit 597470c

Browse files
committed
ci: prepare for trusted publishing
1 parent 228f0c5 commit 597470c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ jobs:
1919
release:
2020
runs-on: ubuntu-latest
2121
needs: test
22+
permissions: write-all
2223
steps:
2324
- uses: actions/checkout@v4
2425
with:
2526
fetch-depth: 0
27+
token: ${{ secrets.GITHUB_TOKEN }}
2628
- uses: actions/setup-node@v4
2729
with:
2830
node-version-file: .node-version
2931
cache: npm
32+
- run: npm i -g npm@latest
3033
- run: npm ci
3134
- run: npm run semantic-release
3235
env:

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"import": "./dist/index.mjs"
3131
}
3232
},
33+
"publishConfig": {
34+
"access": "public",
35+
"provenance": true,
36+
"registry": "https://registry.npmjs.org/"
37+
},
3338
"scripts": {
3439
"build": "unbuild",
3540
"stub": "unbuild --stub",

0 commit comments

Comments
 (0)