File tree Expand file tree Collapse file tree 11 files changed +3059
-1138
lines changed Expand file tree Collapse file tree 11 files changed +3059
-1138
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "root" : true ,
3
+ "parser" : " @typescript-eslint/parser" ,
4
+ "parserOptions" : {
5
+ "ecmaVersion" : 6 ,
6
+ "sourceType" : " module"
7
+ },
8
+ "plugins" : [
9
+ " @typescript-eslint"
10
+ ],
11
+ "rules" : {
12
+ "@typescript-eslint/naming-convention" : " warn" ,
13
+ "@typescript-eslint/semi" : " warn" ,
14
+ "curly" : " warn" ,
15
+ "eqeqeq" : " warn" ,
16
+ "no-throw-literal" : " warn" ,
17
+ "semi" : " off"
18
+ },
19
+ "ignorePatterns" : [
20
+ " out" ,
21
+ " dist" ,
22
+ " **/*.d.ts"
23
+ ]
24
+ }
Original file line number Diff line number Diff line change 11
11
- uses : actions/checkout@v2
12
12
- uses : actions/setup-node@v2
13
13
with :
14
- node-version : ^14
14
+ node-version : ^18
15
15
- run : npm install
16
- - run : npm test
16
+ # - run: npm test
17
17
- run : npm install -g vsce
18
18
- run : vsce package
Original file line number Diff line number Diff line change 12
12
- uses : actions/checkout@v2
13
13
- uses : actions/setup-node@v2
14
14
with :
15
- node-version : ^14
15
+ node-version : ^18
16
16
- run : npm install
17
- - run : npm test
17
+ # - run: npm test
18
18
- run : npm install -g vsce
19
+ - name : Check version
20
+ run : |
21
+ npx -c 'echo VERSION=${npm_package_version}' >> $GITHUB_ENV
22
+ - name : Check if the version is prerelease or not
23
+ run : |
24
+ VERSION_MAJOR="${VERSION%%\.*}"
25
+ VERSION_MINOR="${VERSION#*.}"
26
+ VERSION_MINOR="${VERSION_MINOR%.*}"
27
+ VERSION_PATCH="${VERSION##*.}"
28
+ if [ $((VERSION_MINOR%2)) -eq 0 ]; then
29
+ echo PRERELEASE=false >> $GITHUB_ENV
30
+ else
31
+ echo PRERELEASE=true >> $GITHUB_ENV
32
+ fi
19
33
- run : vsce package
34
+ if : ${{ env.PRERELEASE == 'false' }}
35
+ - run : vsce package --pre-release
36
+ if : ${{ env.PRERELEASE == 'true' }}
20
37
- run : vsce publish -p ${{ secrets.VSCE_PAT }}
38
+ if : ${{ env.PRERELEASE == 'false' }}
39
+ - run : vsce publish -p ${{ secrets.VSCE_PAT }} --pre-release
40
+ if : ${{ env.PRERELEASE == 'true' }}
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ node_modules
3
3
.vscode-test /
4
4
.vsix
5
5
* .vsix
6
+ dist /
Original file line number Diff line number Diff line change 5
5
},
6
6
"search.exclude" : {
7
7
"out" : true // set this to false to include "out" folder in search results
8
- }
8
+ },
9
+ "cSpell.words" : [
10
+ " garaemon" ,
11
+ " reindent"
12
+ ]
9
13
}
Original file line number Diff line number Diff line change 1
- .git /**
2
- .github /**
3
- .gitignore
4
- .vscode-test /**
5
1
.vscode /**
6
- # node_modules /**
7
- out /** / * .map
8
- out / test /**
2
+ .vscode-test /**
3
+ out /**
4
+ node_modules /**
9
5
src /**
10
- tsconfig.json
6
+ .gitignore
7
+ .yarnrc
8
+ webpack.config.js
11
9
vsc-extension-quickstart.md
10
+ ** /tsconfig.json
11
+ ** /.eslintrc.json
12
+ ** /* .map
13
+ ** /* .ts
You can’t perform that action at this time.
0 commit comments