File tree Expand file tree Collapse file tree 3 files changed +279
-2
lines changed Expand file tree Collapse file tree 3 files changed +279
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ release :
4
+ types : [created]
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ name : Publish package
9
+ steps :
10
+ - name : Checkout the repository
11
+ uses : actions/checkout@v2
12
+ - name : Install pnpm
13
+
14
+ with :
15
+ version : 6
16
+ - name : Install Node.js
17
+ uses : actions/setup-node@v2
18
+ with :
19
+ node-version : 16
20
+ cache : ' pnpm'
21
+ registry-url : ' https://registry.npmjs.org'
22
+ - name : Install dependencies
23
+ run : pnpm install
24
+ - name : Install dependencies to legacy folder
25
+ working-directory : legacy
26
+ run : pnpm install
27
+ - name : Publish
28
+ run : pnpm publish --no-git-checks
29
+ env :
30
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 61
61
"test:typings" : " tsd" ,
62
62
"lint" : " eslint 'src/**/*.ts'" ,
63
63
"format" : " prettier --write src test" ,
64
- "release" : " standard-version" ,
65
64
"docs:dev" : " vuepress dev docs" ,
66
65
"docs:build" : " vuepress build docs" ,
67
66
"commit" : " cz" ,
68
67
"start:storybook" : " start-storybook -p 6006" ,
69
- "build:storybook" : " del ./storybook-static; NODE_ENV=production build-storybook"
68
+ "build:storybook" : " del ./storybook-static; NODE_ENV=production build-storybook" ,
69
+ "bumpVersion" : " standard-version" ,
70
+ "createGithubRelease" : " simple-github-release" ,
71
+ "release" : " pnpm bumpVersion && git push origin main --tags && pnpm createGithubRelease"
70
72
},
71
73
"peerDependencies" : {
72
74
"chart.js" : " ^3.7.0" ,
116
118
"rollup" : " ^2.66.1" ,
117
119
"rollup-plugin-swc" : " ^0.2.0" ,
118
120
"simple-git-hooks" : " ^2.7.0" ,
121
+ "simple-github-release" : " ^1.0.0" ,
119
122
"size-limit" : " ^7.0.8" ,
120
123
"standard-version" : " ^9.3.2" ,
121
124
"tsd" : " ^0.19.1" ,
You can’t perform that action at this time.
0 commit comments