File tree 1 file changed +56
-0
lines changed
1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ workflow_dispatch :
9
+ inputs :
10
+ disable_audit :
11
+ type : boolean
12
+ description : " Disable audit in the release"
13
+ default : false
14
+
15
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
16
+
17
+ jobs :
18
+ release :
19
+ name : Release
20
+ runs-on : ubuntu-latest
21
+ permissions :
22
+ id-token : write
23
+ contents : write
24
+ pull-requests : write
25
+ issues : write
26
+ steps :
27
+ - name : Checkout
28
+ uses : actions/checkout@v4
29
+ with :
30
+ fetch-depth : 0
31
+ persist-credentials : false
32
+ - name : Setup Node.js
33
+ uses : actions/setup-node@v4
34
+ with :
35
+ node-version-file : " .nvmrc"
36
+ cache : " yarn"
37
+ env :
38
+ SKIP_YARN_COREPACK_CHECK : " 1"
39
+ - name : Enable corepack
40
+ run : corepack enable
41
+ - name : Update npm to latest
42
+ run : npm install -g npm@latest
43
+ - name : Install dependencies
44
+ run : yarn
45
+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
46
+ if : ${{ github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && !inputs.disable_audit) }}
47
+ run : npm audit signatures
48
+ - name : Publish
49
+ uses : changesets/action@v1
50
+ with :
51
+ title : " release: version packages"
52
+ commit : " release: version packages"
53
+ publish : yarn publish
54
+ env :
55
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments