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
2
2
3
3
on :
4
4
push :
5
- branches : ["main"]
5
+ tags :
6
+ - " *"
6
7
7
8
jobs :
8
9
publish :
9
10
runs-on : ubuntu-latest
10
11
steps :
11
- - uses : actions/checkout@v3
12
- - uses : actions/setup-node@v3
12
+ - uses : actions/checkout@v2
13
+ - uses : actions/setup-node@v2
13
14
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 1
1
{
2
2
"name" : " assemblyscript-prettier" ,
3
- "version" : " 2 .0.2 " ,
3
+ "version" : " 0 .0.0 " ,
4
4
"description" : " prettier for assemblyscript" ,
5
5
"main" : " src/plugin.js" ,
6
6
"type" : " module" ,
9
9
"lint:fix" : " prettier -w ." ,
10
10
"test" : " NODE_OPTIONS=--experimental-vm-modules jest" ,
11
11
"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 "
13
13
},
14
14
"author" : " congcongcai0907@163.com" ,
15
15
"license" : " MIT" ,
21
21
"publishConfig" : {
22
22
"access" : " public"
23
23
},
24
+ "files" : [
25
+ " package.json" ,
26
+ " README.md" ,
27
+ " CHANGELOG.md" ,
28
+ " src/*"
29
+ ],
24
30
"repository" : {
25
31
"type" : " git" ,
26
32
"url" : " https://github.com/HerrCai0907/assemblyscript-prettier.git"
You can’t perform that action at this time.
0 commit comments