File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ workflow_dispatch :
4
+
5
+ permissions :
6
+ contents : read # for checkout
7
+
8
+ jobs :
9
+ release :
10
+ name : Release
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : write # to be able to publish a GitHub release
14
+ issues : write # to be able to comment on released issues
15
+ pull-requests : write # to be able to comment on released pull requests
16
+ id-token : write # to enable use of OIDC for npm provenance
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 0
22
+ - name : Setup Node.js
23
+ uses : actions/setup-node@v4
24
+ with :
25
+ node-version : " lts/*"
26
+ - name : Install dependencies
27
+ run : npm install
28
+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
29
+ run : npm audit signatures
30
+ - name : Building
31
+ run : npm run build
32
+ - name : Release
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
36
+ run : npx semantic-release
Original file line number Diff line number Diff line change
1
+ {
2
+ "release": {
3
+ "branches": [
4
+ "main"
5
+ ]
6
+ },
7
+ "plugins": [
8
+ "@semantic-release/npm",
9
+ {
10
+ "pkgRoot": "./lib"
11
+ }
12
+ ]
13
+ }
You can’t perform that action at this time.
0 commit comments