File tree Expand file tree Collapse file tree 3 files changed +264
-1
lines changed Expand file tree Collapse file tree 3 files changed +264
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Package
2
+ on :
3
+ release :
4
+ types : [created]
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Checkout the repository
10
+ uses : actions/checkout@v2
11
+ - name : Install pnpm
12
+ uses : pnpm/action-setup@v2.0.1
13
+ with :
14
+ version : 6
15
+ - name : Install Node.js
16
+ uses : actions/setup-node@v2
17
+ with :
18
+ node-version : 14
19
+ cache : ' pnpm'
20
+ registry-url : ' https://registry.npmjs.org'
21
+ - name : Install dependencies
22
+ run : pnpm install
23
+ - name : Publish
24
+ run : pnpm publish --no-git-checks
25
+ env :
26
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 42
42
"test" : " pnpm test:lint && pnpm test:unit && pnpm test:build" ,
43
43
"format" : " prettier --write src" ,
44
44
"commit" : " cz" ,
45
- "release" : " standard-version" ,
45
+ "bumpVersion" : " standard-version" ,
46
+ "createGithubRelease" : " simple-github-release" ,
47
+ "release" : " pnpm bumpVersion && git push origin master --tags && pnpm createGithubRelease" ,
46
48
"updateGitHooks" : " simple-git-hooks"
47
49
},
48
50
"peerDependencies" : {
102
104
"rollup" : " ^2.58.0" ,
103
105
"rollup-plugin-swc" : " ^0.2.0" ,
104
106
"simple-git-hooks" : " ^2.6.1" ,
107
+ "simple-github-release" : " ^1.0.0" ,
105
108
"size-limit" : " ^7.0.4" ,
106
109
"standard-version" : " ^9.3.1" ,
107
110
"tsd" : " ^0.19.0" ,
You can’t perform that action at this time.
0 commit comments