File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,25 @@ name: Release
3
3
on :
4
4
push :
5
5
tags :
6
- - ' *'
6
+ - ' v *'
7
7
8
8
jobs :
9
9
release :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- uses : actions/checkout@v2
13
+ with :
14
+ fetch-depth : 0
15
+ - uses : actions/setup-node@v2
16
+ with :
17
+ node-version : ' 14'
18
+ registry-url : https://registry.npmjs.org/
19
+ - run : npm i -g pnpm @antfu/ni
20
+ - run : nci
21
+ - run : nr test --if-present
22
+ - run : npm publish --access public
23
+ env :
24
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
13
25
- run : npx conventional-github-releaser -p angular
14
26
env :
15
27
CONVENTIONAL_GITHUB_RELEASER_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 11
11
"type" : " git" ,
12
12
"url" : " https://github.com/antfu/vite-plugin-components"
13
13
},
14
+ "funding" : " https://github.com/sponsors/antfu" ,
14
15
"homepage" : " https://github.com/antfu/vite-plugin-components" ,
15
16
"bugs" : " https://github.com/antfu/vite-plugin-components/issues" ,
16
17
"files" : [
22
23
"example:build" : " npm -C example run build" ,
23
24
"build" : " tsup src/index.ts --dts --format cjs,esm" ,
24
25
"prepublishOnly" : " npm run build" ,
25
- "release" : " npx bumpp --commit --tag --push && npm publish "
26
+ "release" : " npx git-ensure -a && npx bumpp --commit --tag --push"
26
27
},
27
28
"dependencies" : {
28
29
"chokidar" : " ^3.5.1" ,
You can’t perform that action at this time.
0 commit comments