File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ branches :
5+ - main
6+
7+ permissions :
8+ contents : read # for checkout
9+
10+ jobs :
11+ release :
12+ name : Release
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : write # to be able to publish a GitHub release
16+ issues : write # to be able to comment on released issues
17+ pull-requests : write # to be able to comment on released pull requests
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v4
21+ with :
22+ fetch-depth : 0
23+ - name : Setup Node.js
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : " lts/*"
27+ - name : Install dependencies
28+ run :
29+ npm i -g semantic-release-rubygem @semantic-release/changelog @semantic-release/git @semantic-release/release-notes-generator @semantic-release/github @semantic-release/commit-analyzer semantic-release
30+ - name : Release
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ GEM_HOST_API_KEY : ${{ secrets.GEM_HOST_API_KEY }}
34+ run : semantic-release
Original file line number Diff line number Diff line change 1+ {
2+ "branches" : [" main" ],
3+ "plugins" : [
4+ " @semantic-release/commit-analyzer" ,
5+ " @semantic-release/release-notes-generator" ,
6+ " @semantic-release/changelog" ,
7+ [" semantic-release-rubygem" , { "gemPublish" : true }],
8+ [
9+ " @semantic-release/git" ,
10+ {
11+ "assets" : [" lib/anchor/version.rb" , " CHANGELOG.md" ],
12+ "message" : " chore(release): ${nextRelease.version} [skip ci]\n\n ${nextRelease.notes}"
13+ }
14+ ],
15+ " @semantic-release/github"
16+ ]
17+ }
You can’t perform that action at this time.
0 commit comments