File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33on :
44 push :
5- branches : [develop, main ]
5+ branches : [develop]
66 pull_request :
7- branches : [develop, main ]
7+ branches : [develop]
88
99jobs :
1010 check :
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : write
10+ issues : write
11+ pull-requests : write
12+ pages : write
13+ id-token : write
14+
15+ jobs :
16+ release :
17+ name : Release
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+ persist-credentials : false
26+
27+ - name : Setup Node.js
28+ uses : actions/setup-node@v4
29+ with :
30+ node-version : ' 24'
31+ cache : ' npm'
32+
33+ - name : Install dependencies
34+ run : npm ci
35+
36+ - name : Run lint
37+ run : npm run lint
38+
39+ - name : Run tests
40+ run : npm test
41+
42+ - name : Run build
43+ run : npm run build
44+
45+ - name : Release
46+ env :
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
49+ run : npx semantic-release
50+
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/npm" ,
7+ " @semantic-release/github"
8+ ]
9+ }
10+
You can’t perform that action at this time.
0 commit comments