File tree 5 files changed +43
-48
lines changed
5 files changed +43
-48
lines changed Original file line number Diff line number Diff line change 11
11
test :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@main
15
14
- uses : yanhao98/composite-actions/setup-node-environment@main
16
15
- run : pnpm test
17
16
- name : " Memory test"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Release and publish
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ jobs :
7
+ release :
8
+ runs-on : ubuntu-latest
9
+ permissions : # Job-level permissions configuration starts here
10
+ id-token : write # npm provenance requires this permission
11
+ contents : write # to be able to publish a GitHub release
12
+ issues : write # to be able to comment on released issues
13
+ pull-requests : write # to be able to comment on released pull requests
14
+ steps :
15
+ - uses : yanhao98/composite-actions/setup-node-environment@main
16
+ - uses : yanhao98/semantic-release-action@main
17
+ env :
18
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
19
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ ---
2
+ plugins :
3
+ - " @semantic-release/commit-analyzer"
4
+ - " @semantic-release/release-notes-generator"
5
+ - " @semantic-release/changelog"
6
+ # #############################
7
+ # https://github.com/semantic-release/npm?tab=readme-ov-file#environment-variables
8
+ # #############################
9
+ - - "@semantic-release/npm"
10
+ # [provenance](https://docs.npmjs.com/generating-provenance-statements#using-third-party-package-publishing-tools)
11
+ - npmPublish : true
12
+ # #############################
13
+ # https://github.com/semantic-release/github?tab=readme-ov-file#configuration
14
+ # #############################
15
+ - " @semantic-release/github"
16
+ - - "@semantic-release/git"
17
+ - message : |-
18
+ chore(release): ${nextRelease.version} [skip ci]
19
+
20
+ ${nextRelease.notes}
Original file line number Diff line number Diff line change 40
40
"tsup" : " ^8.3.5" ,
41
41
"typescript" : " ^5.6.3" ,
42
42
"vitest" : " ^2.1.3"
43
- }
43
+ },
44
+ "publishConfig" : {
45
+ "provenance" : true
46
+ }
44
47
}
You can’t perform that action at this time.
0 commit comments