File tree Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Semantic Releases
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - ' *.x'
8+
9+ permissions :
10+ contents : write
11+ pull-requests : write
12+ issues : write
13+ packages : write
14+ statuses : write
15+
16+ jobs :
17+ run :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout Code
21+ uses : actions/checkout@v4
22+ with :
23+ persist-credentials : false
24+
25+ - name : Setup Configuration
26+ run : |
27+ if [ -n "$GH_TOKEN_SECRET" ]; then
28+ echo "GH_TOKEN=$GH_TOKEN_SECRET" >> $GITHUB_ENV
29+ else
30+ echo "GH_TOKEN=$GITHUB_TOKEN" >> $GITHUB_ENV
31+ fi
32+ env :
33+ GH_TOKEN_SECRET : ${{ secrets.GH_TOKEN }}
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+
36+ - name : Setup Node
37+ uses : actions/setup-node@v4
38+ with :
39+ node-version : ' lts/*'
40+
41+ - name : Semantic Release
42+ uses : cycjimmy/semantic-release-action@v4
43+ env :
44+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 1+ {
2+ " branches " : [
3+ " master" ,
4+ " *.x"
5+ ],
6+ " plugins " : [
7+ " @semantic-release/commit-analyzer" ,
8+ " @semantic-release/release-notes-generator" ,
9+ [
10+ " @semantic-release/changelog" ,
11+ {
12+ " changelogFile " : " CHANGELOG.md"
13+ }
14+ ],
15+ [
16+ " @semantic-release/git" ,
17+ {
18+ " assets " : [
19+ " CHANGELOG.md"
20+ ]
21+ }
22+ ],
23+ " @semantic-release/github"
24+ ]
25+ }
You can’t perform that action at this time.
0 commit comments