File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - dev
8+
9+ jobs :
10+ release :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v3
15+ with :
16+ fetch-depth : 0
17+ persist-credentials : false
18+
19+ - uses : pnpm/action-setup@v3
20+ with :
21+ version : 8
22+
23+ - name : Setup Node.js
24+ uses : actions/setup-node@v3
25+ with :
26+ node-version : 18
27+
28+ - name : Install dependencies
29+ run : pnpm i
30+
31+ - name : Semantic Release
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
35+ run : pnpm run lib:release
Original file line number Diff line number Diff line change 1+ {
2+ "branches": [
3+ "main",
4+ {
5+ "name": "dev",
6+ "prerelease": true
7+ }
8+ ],
9+ "plugins": [
10+ "@semantic-release/commit-analyzer",
11+ "@semantic-release/release-notes-generator",
12+ "@semantic-release/npm",
13+ "@semantic-release/github"
14+ ]
15+ }
Original file line number Diff line number Diff line change 2424 "lib:bump:dev" : " changelogen --bump --prerelease dev" ,
2525 "lib:publish" : " changelogen --publish" ,
2626 "lib:publish:dev" : " npm publish react-plock --tag dev" ,
27- "lib:release" : " changelogen - -release" ,
27+ "lib:release" : " semantic -release" ,
2828 "build" : " tsup index.ts --dts --minify"
2929 },
3030 "bugs" : {
3838 "@types/react" : " ^18.0.28" ,
3939 "changelogen" : " ^0.5.5" ,
4040 "jest" : " ^29.4.3" ,
41+ "semantic-release" : " ^22.0.12" ,
4142 "ts-jest" : " ^29.0.5"
4243 }
4344}
You can’t perform that action at this time.
0 commit comments