File tree Expand file tree Collapse file tree 5 files changed +21
-106
lines changed Expand file tree Collapse file tree 5 files changed +21
-106
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,22 @@ name: publish
22
33on :
44 push :
5- branches : ["main"]
5+ tags :
6+ - " *"
67
78jobs :
89 publish :
910 runs-on : ubuntu-latest
1011 steps :
11- - uses : actions/checkout@v3
12- - uses : actions/setup-node@v3
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-node@v2
1314 with :
14- node-version : 16
15- - uses : JS-DevTools/npm-publish@v1
16- with :
17- token : ${{ secrets.NPM_TOKEN }}
18- greater-version-only : true
15+ node-version : " 18.x"
16+ - name : Install dependencies
17+ run : npm ci
18+
19+ - run : npm version $(echo "${GITHUB_REF}" | sed 's/refs\/tags\///') --git-tag-version false
20+ - run : echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
21+ env :
22+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
23+ - run : npm publish
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 "name" : " assemblyscript-prettier" ,
3- "version" : " 2 .0.2 " ,
3+ "version" : " 0 .0.0 " ,
44 "description" : " prettier for assemblyscript" ,
55 "main" : " src/plugin.js" ,
66 "type" : " module" ,
99 "lint:fix" : " prettier -w ." ,
1010 "test" : " NODE_OPTIONS=--experimental-vm-modules jest" ,
1111 "test:create" : " NODE_OPTIONS=--experimental-vm-modules jest --updateSnapshot" ,
12- "version" : " conventional-changelog -i CHANGELOG.md -s - p angular && git add CHANGELOG.md "
12+ "version" : " conventional-changelog -o CHANGELOG.md -p angular -r 0 "
1313 },
14141515 "license" : " MIT" ,
2121 "publishConfig" : {
2222 "access" : " public"
2323 },
24+ "files" : [
25+ " package.json" ,
26+ " README.md" ,
27+ " CHANGELOG.md" ,
28+ " src/*"
29+ ],
2430 "repository" : {
2531 "type" : " git" ,
2632 "url" : " https://github.com/HerrCai0907/assemblyscript-prettier.git"
You can’t perform that action at this time.
0 commit comments