Skip to content

Commit 9b5ec77

Browse files
authored
chore: publish with provenance (#226)
1 parent 397c737 commit 9b5ec77

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
# adapted from https://github.com/googleapis/release-please-action#automating-publication-to-npm
2+
name: release-please
3+
24
on:
35
push:
46
branches:
57
- main
6-
name: release-please
78
env:
89
# renovate datasource=github-releases depName=jdx/mise
910
MISE_VERSION: 'v2025.11.7'
11+
12+
# `id-token` for publishing: https://docs.npmjs.com/trusted-publishers#github-actions-configuration
13+
# the rest for release-please: https://github.com/googleapis/release-please-action#basic-configuration
14+
permissions:
15+
id-token: write # Required for kOIDC
16+
contents: write # Required by release-please to create a release
17+
pull-requests: write # Required by release-please to open a release PR
18+
issues: write # Required by release-please to comment on release-related issues
19+
1020
jobs:
1121
release-please:
1222
runs-on: ubuntu-latest
@@ -31,7 +41,6 @@ jobs:
3141
if: ${{ steps.release.outputs.release_created }}
3242
- run: yarn --immutable
3343
if: ${{ steps.release.outputs.release_created }}
34-
- run: npm publish
35-
env:
36-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
44+
- run: |
45+
yarn npm publish --provenance
3746
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)