Skip to content

Commit aa7cdb6

Browse files
authored
1 parent df2e182 commit aa7cdb6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
os: [ubuntu-latest]
4343
node: [18, 20]
4444
runs-on: ${{ matrix.os }}
45+
permissions:
46+
contents: write # to be able to publish a GitHub release
47+
issues: write # to be able to comment on released issues
48+
pull-requests: write # to be able to comment on released pull requests
49+
id-token: write # to enable use of OIDC for npm provenance
4550
steps:
4651
- name: Checkout
4752
uses: actions/checkout@v3
@@ -56,8 +61,9 @@ jobs:
5661
- run: pnpm build
5762
- run: pnpm test
5863
- name: Maybe Release
59-
if: matrix.os == 'ubuntu-latest' && matrix.node == 18 && github.event_name == 'push' && github.ref == 'refs/heads/main'
64+
if: matrix.os == 'ubuntu-latest' && matrix.node == 20 && github.event_name == 'push' && github.ref == 'refs/heads/main'
6065
env:
6166
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6267
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
63-
run: pnpm dlx semantic-release@19.0.5
68+
NPM_CONFIG_PROVENANCE: 'true'
69+
run: pnpm dlx semantic-release@24.2.3

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
shell-emulator=true
2+
provenance=true

0 commit comments

Comments
 (0)