File tree Expand file tree Collapse file tree 4 files changed +56
-0
lines changed Expand file tree Collapse file tree 4 files changed +56
-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
9
+
10
+ jobs :
11
+ release :
12
+ name : Release
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ contents : write
16
+ issues : write
17
+ pull-requests : write
18
+ id-token : write
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v3
22
+ with :
23
+ fetch-depth : 0
24
+ - name : Setup Node.js
25
+ uses : actions/setup-node@v3
26
+ with :
27
+ node-version : " 20.16.0"
28
+ - name : Install dependencies
29
+ run : npm install -g semantic-release@24.0.0 @semantic-release/github@10.1.1
30
+ - name : Release
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ run : npx semantic-release
Original file line number Diff line number Diff line change
1
+ stages :
2
+ - release
3
+
4
+ release :
5
+ image : node:20
6
+ stage : release
7
+ only :
8
+ refs :
9
+ - main
10
+ script :
11
+ - npm install -g semantic-release@24.0.0
12
+ - npm install -g @semantic-release/gitlab@10.1.1
13
+ - npx semantic-release
Original file line number Diff line number Diff line change
1
+ branches :
2
+ - main
3
+ plugins :
4
+ - " @semantic-release/commit-analyzer"
5
+ - " @semantic-release/release-notes-generator"
6
+ # remove the comment from one of them according to your needs
7
+ - " @semantic-release/github"
8
+ # - "@semantic-release/gitlab"
Original file line number Diff line number Diff line change
1
+ # Automating Semantic Release
1
2
3
+ Related Article: [ Automating Versioning and Releases Using Semantic Release] ( https://lorenzomiscoli.com/automating-versioning-and-releases-using-semantic-release )
You can’t perform that action at this time.
0 commit comments