File tree Expand file tree Collapse file tree 2 files changed +325
-282
lines changed Expand file tree Collapse file tree 2 files changed +325
-282
lines changed Original file line number Diff line number Diff line change
1
+ name : Release on main
2
+
3
+ permissions :
4
+ contents : write # to be able to publish a GitHub release
5
+ issues : write # to be able to comment on released issues
6
+ pull-requests : write # to be able to comment on released pull requests
7
+ id-token : write # to enable use of OIDC for npm provenance
8
+
9
+ on :
10
+ push :
11
+ branches :
12
+ - main
13
+ - next
14
+
15
+ # Cancel previous workflows which might still be running
16
+ concurrency :
17
+ group : ${{ github.workflow }}-${{ github.ref }}
18
+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
19
+
20
+ jobs :
21
+ release :
22
+ name : Release
23
+ runs-on : [ubuntu-latest]
24
+ steps :
25
+ - name : Checkout
26
+ uses : actions/checkout@v4
27
+
28
+ - name : Install Node.js
29
+ uses : actions/setup-node@v4
30
+ with :
31
+ node-version : 14
32
+
33
+ - name : Install dependencies
34
+ run : npm install
35
+
36
+ - name : Run all tests
37
+ run : npm test
38
+
39
+ - name : Release and publish
40
+ run : npx semantic-release
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments