File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ types :
8+ - closed
9+
10+ permissions :
11+ contents : read # for checkout
12+
13+ jobs :
14+ release :
15+ name : Release
16+ if : github.event.pull_request.merged == true
17+ runs-on : ubuntu-latest
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
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v4
26+ with :
27+ fetch-depth : 0
28+
29+ - name : Setup pnpm
30+ uses : pnpm/action-setup@v4
31+
32+ - name : Use Node.js
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version-file : ' .nvmrc'
36+ cache : ' pnpm'
37+
38+ - name : Installing dependencies
39+ run : pnpm install
40+
41+ - name : Building
42+ run : pnpm build
43+
44+ # https://github.com/pnpm/pnpm/issues/7909
45+ # - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
46+ # run: npm audit signatures
47+
48+ - name : Release
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
52+ NPM_CONFIG_PROVENANCE : true
53+ run : npx --no semantic-release
You can’t perform that action at this time.
0 commit comments