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
+
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 1
1
{
2
- "name" : " core " ,
2
+ "name" : " @jwcjs/monorepo " ,
3
3
"author" :
" wibus-wee <[email protected] >" ,
4
4
"license" : " MIT" ,
5
5
"scripts" : {
6
- "lint" : " eslint ./packages"
6
+ "lint" : " eslint ./packages" ,
7
+ "build:core" : " cd packages/core && pnpm run build" ,
8
+ "bump" : " bump -f packages/core"
7
9
},
8
10
"devDependencies" : {
11
+ "@innei/bump-version" : " ^1.5.4" ,
9
12
"@types/node" : " ^18.11.17" ,
10
13
"@typescript-eslint/eslint-plugin" : " ^5.46.1" ,
11
14
"@typescript-eslint/parser" : " ^5.46.1" ,
Original file line number Diff line number Diff line change 11
11
},
12
12
"types" : " ./dist/index.d.ts" ,
13
13
"files" : [
14
- " dist"
14
+ " dist" ,
15
+ " package.json" ,
16
+ " LICENSE"
15
17
],
16
18
"repository" : {
17
19
"type" : " git" ,
18
- "url" : " https://github.com/jwcjs/core"
20
+ "url" : " git+ https://github.com/jwcjs/core.git "
19
21
},
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" ,
20
27
"scripts" : {
28
+ "prepublish" : " npm run build" ,
21
29
"build" : " rimraf dist && rollup -c rollup.config.mjs"
22
30
},
23
31
"keywords" : [
39
47
"@jwcjs/shared" : " workspace:^1.0.0" ,
40
48
"reflect-metadata" : " ^0.1.13" ,
41
49
"rollup-plugin-ts" : " ^3.0.2"
50
+ },
51
+ "bump" : {
52
+ "publish" : true ,
53
+ "changelog" : true
42
54
}
43
55
}
You can’t perform that action at this time.
0 commit comments