File tree Expand file tree Collapse file tree 2 files changed +54
-22
lines changed Expand file tree Collapse file tree 2 files changed +54
-22
lines changed Original file line number Diff line number Diff line change 11name : Release
2- " on " :
2+
3+ # 当 master 分支被 push,就会触发
4+ on :
35 push :
4- branches :
5- - master
6- - next
7- - beta
8- - " *.x"
6+ branches : [master]
97permissions :
10- contents : read
8+ contents : write
9+ issues : write
10+ pull-requests : write
11+ packages : write
12+ id-token : write
13+
1114jobs :
1215 release :
13- name : release
1416 runs-on : ubuntu-latest
15- permissions :
16- contents : write
17- id-token : write
18- issues : write
19- pull-requests : write
17+
2018 steps :
21- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22- - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
19+ - name : setup node
20+ uses : actions/setup-node@v2.5.2
2321 with :
24- cache : npm
25- node-version : lts/*
26- - run : npm clean-install
27- - run : corepack npm audit signatures
28- - run : npx semantic-release
22+ node-version : " 20.8.1" # node 版本
23+ - name : checkout
24+ uses : actions/checkout@v3
25+ with :
26+ fetch-depth : 0
27+ persist-credentials : false
28+ - name : publish
2929 env :
30- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31- NPM_TOKEN : ${{ secrets.SEMANTIC_RELEASE_BOT_NPM_TOKEN }}
30+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
31+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
32+ run : |
33+ npm -v
34+ node -v
35+ npm cache clean --force
36+ npx semantic-release
Original file line number Diff line number Diff line change 1+ {
2+ "repositoryUrl" : " git@github.com:electroluxcode/lerna-demo.git" ,
3+ "branches" : [
4+ " main"
5+ ],
6+ "plugins" : [
7+ " @semantic-release/commit-analyzer" ,
8+ " @semantic-release/npm" ,
9+ " @semantic-release/release-notes-generator" ,
10+ [
11+ " @semantic-release/changelog" ,
12+ {
13+ "changelogFile" : " CHANGELOG.md"
14+ }
15+ ],
16+ [
17+ " @semantic-release/git" ,
18+ {
19+ "assets" : [
20+ " CHANGELOG.md" , " package.json"
21+ ],
22+ "message" : " chore(release): v${nextRelease.version} [skip ci]\n\n ${nextRelease.notes}"
23+ }
24+ ]
25+ ],
26+ "extends" : " semantic-release-monorepo"
27+ }
You can’t perform that action at this time.
0 commit comments