Skip to content

Commit 0d8f50f

Browse files
committed
Update release.yml
1 parent a728ef5 commit 0d8f50f

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: Release
2-
on: workflow_dispatch
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 6 * * 0' # every Sunday at 6am
7+
38
permissions:
4-
id-token: write
5-
contents: read
9+
contents: read # for checkout
10+
611
jobs:
712
test:
813
runs-on: ubuntu-latest
@@ -17,15 +22,35 @@ jobs:
1722
release:
1823
needs: test
1924
runs-on: ubuntu-latest
25+
permissions:
26+
contents: write # to be able to publish a GitHub release
27+
issues: write # to be able to comment on released issues
28+
pull-requests: write # to be able to comment on released pull requests
29+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
2030
steps:
21-
- uses: actions/checkout@v4
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0
35+
2236
- uses: actions/setup-node@v4
2337
with:
2438
node-version: '22.x'
2539
registry-url: 'https://registry.npmjs.org'
26-
- uses: pnpm/action-setup@v4
27-
- run: pnpm install
28-
- run: pnpm build
29-
- run: pnpm semantic-release
40+
41+
- name: Setup pnpm
42+
uses: pnpm/action-setup@v4
43+
44+
- name: Install dependencies
45+
run: pnpm install
46+
47+
- name: Verify provenance
48+
run: npm audit signatures
49+
50+
- name: Build
51+
run: pnpm build
52+
53+
- name: Publish
54+
run: pnpm semantic-release
3055
env:
3156
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)