File tree Expand file tree Collapse file tree 5 files changed +4343
-925
lines changed
Expand file tree Collapse file tree 5 files changed +4343
-925
lines changed Original file line number Diff line number Diff line change 1+ name : Publish NPM
2+ on :
3+ create :
4+ tags :
5+ - v*
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v2
11+ # Setup .npmrc file to publish to npm
12+ - uses : actions/setup-node@v2
13+ with :
14+ node-version : ' 12.x'
15+ registry-url : ' https://registry.npmjs.org'
16+ - run : npm ci
17+ - run : make build
18+ - run : npm publish
19+ env :
20+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ level? =patch
2+
13# Development
24lint :
35 @echo " Linting..."
@@ -27,4 +29,10 @@ build-demo:
2729 @echo " Building demo..."
2830 @rm -rf ./demo/dist
2931 @NODE_ENV=production npx rollup -c ./demo/rollup.config.js
30- .PHONY : build build-demo
32+ release :
33+ @echo " Release $( level) "
34+ @echo " Adding tag and modify the CHANGELOG"
35+ @npx standard-version --release-as $(level )
36+ @echo " Pushing to the github and trigger action for npm:publish"
37+ @git push --follow-tags origin master
38+ .PHONY : build build-demo release
You can’t perform that action at this time.
0 commit comments