File tree 5 files changed +56
-38
lines changed
5 files changed +56
-38
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ workflow_run :
4
+ workflows : ["Lint & Unit Test"]
5
+ branches : [master]
6
+ types :
7
+ - completed
8
+
9
+ permissions :
10
+ contents : read # for checkout
11
+
12
+ jobs :
13
+ release :
14
+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
15
+ name : Release
16
+ runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : write # to be able to publish a GitHub release
19
+ issues : write # to be able to comment on released issues
20
+ pull-requests : write # to be able to comment on released pull requests
21
+ id-token : write # to enable use of OIDC for npm provenance
22
+ steps :
23
+ - name : Checkout
24
+ uses : actions/checkout@v3
25
+ with :
26
+ fetch-depth : 0
27
+ - name : Setup Node.js
28
+ uses : actions/setup-node@v3
29
+ with :
30
+ node-version : " lts/*" # semantic-release requires Node >= 18
31
+ - name : Install dependencies
32
+ run : npm clean-install
33
+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
34
+ run : npm audit signatures
35
+ - name : Release
36
+ env :
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
39
+ run : npm install -g @semantic-release/changelog @semantic-release/git semantic-release && semantic-release && echo release success
Original file line number Diff line number Diff line change 29
29
.travis.yml
30
30
karma.sauce.conf.js
31
31
.github
32
+ .releaserc
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches": ["master"],
3
+ "prepare": [
4
+ {
5
+ "path": "@semantic-release/changelog"
6
+ },
7
+ [
8
+ "@semantic-release/git",
9
+ {
10
+ "assets": [
11
+ "CHANGELOG.md"
12
+ ]
13
+ }
14
+ ]
15
+ ]
16
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 36
36
" src/**/*"
37
37
]
38
38
},
39
- "release" : {
40
- "prepare" : [
41
- {
42
- "path" : " @semantic-release/changelog"
43
- },
44
- [
45
- " @semantic-release/git" ,
46
- {
47
- "assets" : [
48
- " CHANGELOG.md"
49
- ]
50
- }
51
- ]
52
- ]
53
- },
54
39
"keywords" : [
55
40
" dayjs" ,
56
41
" date" ,
You can’t perform that action at this time.
0 commit comments