Skip to content

Commit 153ba04

Browse files
committed
chore: Enable provenance in snapshot releases
1 parent 3278880 commit 153ba04

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/snapshot-release.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@ on:
66
inputs:
77
version:
88
description: Base version to use for the release
9-
required: true
109
type: string
10+
default: '0.0.0'
1111
env:
1212
FORCE_COLOR: 3 # Diplay chalk colors
1313

1414
jobs:
1515
snapshot:
1616
name: Deployment
1717
runs-on: ubuntu-24.04
18+
permissions:
19+
contents: write # to be able to publish a GitHub release
20+
issues: write # to be able to comment on released issues
21+
pull-requests: write # to be able to comment on released pull requests
22+
id-token: write # to enable use of OIDC for NPM provenance
1823
steps:
1924
- name: Generate snapshot version
2025
id: version
@@ -37,7 +42,7 @@ jobs:
3742
run: |
3843
pnpm pkg set version=${{ steps.version.outputs.version }}
3944
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
40-
pnpm publish --access public --tag snapshot --no-git-checks
45+
pnpm publish --access public --provenance --tag snapshot --no-git-checks
4146
rm -f .npmrc
4247
env:
4348
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)