File tree Expand file tree Collapse file tree 1 file changed +26
-10
lines changed Expand file tree Collapse file tree 1 file changed +26
-10
lines changed Original file line number Diff line number Diff line change 1
- name : CI
2
- on : push
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
3
8
permissions :
4
- contents : write
9
+ contents : read
10
+
5
11
jobs :
6
- test :
12
+ release :
13
+ name : Release
7
14
runs-on : ubuntu-latest
15
+ permissions :
16
+ contents : write
17
+ issues : write
18
+ pull-requests : write
19
+ id-token : write
8
20
steps :
9
- - uses : actions/checkout@v3
21
+ - name : Checkout
22
+ uses : actions/checkout@v3
10
23
with :
11
24
fetch-depth : 0
12
- token : ${{ secrets.GITHUB_TOKEN }}
13
- - uses : actions/setup-node@v3
25
+ persist-credentials : false
26
+ - name : Setup Node.js
27
+ uses : actions/setup-node@v3
14
28
with :
15
29
node-version : 16
16
- - run : HUSKY=0 npm ci
17
- - run : npm run build
30
+ - name : Install dependencies
31
+ run : HUSKY=0 npm ci && npm run build
32
+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
33
+ run : npm audit signatures
18
34
- name : Release
19
35
env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
37
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
21
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22
38
run : npm run semantic-release
You can’t perform that action at this time.
0 commit comments