File tree Expand file tree Collapse file tree 4 files changed +904
-4
lines changed
Expand file tree Collapse file tree 4 files changed +904
-4
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ tags : ['v*']
4+
5+ name : Release
6+
7+ jobs :
8+ release :
9+ name : Create Release
10+ strategy :
11+ matrix :
12+ os : [ubuntu-latest]
13+ runs-on : ${{ matrix.os }}
14+ # outputs:
15+ # release_url: ${{ steps.create_release.outputs.upload_url }}
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0
21+ - uses : actions/setup-node@v3
22+ with :
23+ node-version : 16.x
24+ - name : Cache pnpm modules
25+ uses : actions/cache@v3
26+ env :
27+ cache-name : cache-pnpm-modules
28+ with :
29+ path : ~/.pnpm-store
30+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
31+ restore-keys : |
32+ ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
33+ - uses : pnpm/action-setup@v2.2.4
34+ with :
35+ version : latest
36+ run_install : true
37+
38+ - name : Build
39+ run : |
40+ npm run build
41+
42+ - name : Create Release
43+ id : create_release
44+ run : |
45+ npx changelogithub
46+ env :
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11{
2- "name" : " core " ,
2+ "name" : " @jwcjs/monorepo " ,
33 "author" : " wibus-wee <wibus@qq.com>" ,
44 "license" : " MIT" ,
55 "scripts" : {
6- "lint" : " eslint ./packages"
6+ "lint" : " eslint ./packages" ,
7+ "build:core" : " cd packages/core && pnpm run build" ,
8+ "bump" : " bump -f packages/core"
79 },
810 "devDependencies" : {
11+ "@innei/bump-version" : " ^1.5.4" ,
912 "@types/node" : " ^18.11.17" ,
1013 "@typescript-eslint/eslint-plugin" : " ^5.46.1" ,
1114 "@typescript-eslint/parser" : " ^5.46.1" ,
Original file line number Diff line number Diff line change 1111 },
1212 "types" : " ./dist/index.d.ts" ,
1313 "files" : [
14- " dist"
14+ " dist" ,
15+ " package.json" ,
16+ " LICENSE"
1517 ],
1618 "repository" : {
1719 "type" : " git" ,
18- "url" : " https://github.com/jwcjs/core"
20+ "url" : " git+ https://github.com/jwcjs/core.git "
1921 },
22+ "homepage" : " https://jwc.js.org" ,
23+ "bugs" : {
24+ "url" : " https://github.com/jwcjs/core/issues"
25+ },
26+ "readme" : " https://github.com/jwcjs/core#readme" ,
2027 "scripts" : {
28+ "prepublish" : " npm run build" ,
2129 "build" : " rimraf dist && rollup -c rollup.config.mjs"
2230 },
2331 "keywords" : [
3947 "@jwcjs/shared" : " workspace:^1.0.0" ,
4048 "reflect-metadata" : " ^0.1.13" ,
4149 "rollup-plugin-ts" : " ^3.0.2"
50+ },
51+ "bump" : {
52+ "publish" : true ,
53+ "changelog" : true
4254 }
4355}
You can’t perform that action at this time.
0 commit comments