File tree Expand file tree Collapse file tree 5 files changed +62
-12
lines changed Expand file tree Collapse file tree 5 files changed +62
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v[0-9]+.[0-9]+.[0-9]+*
7
+
8
+ jobs :
9
+ publish :
10
+ name : Publish to Github Releases
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+
16
+ - name : Check Tag
17
+ id : check-tag
18
+ shell : bash
19
+ run : |
20
+ tag=${GITHUB_REF##*/}
21
+ echo "::set-output name=version::$tag"
22
+ if [[ "$tag" =~ [0-9]+.[0-9]+.[0-9]+$ ]]; then
23
+ echo "::set-output name=rc::false"
24
+ else
25
+ echo "::set-output name=rc::true"
26
+ fi
27
+
28
+ - uses : actions/setup-node@v3
29
+ with :
30
+ node-version : ' 14'
31
+ cache : ' yarn'
32
+
33
+ - name : Publish Extension
34
+ shell : bash
35
+ run : |
36
+ args=""
37
+ if [[ "${{ steps.check-tag.outputs.rc }}" == "true" ]]; then
38
+ args="--pre-release"
39
+ fi
40
+ yarn install --frozen-lockfile
41
+ yarn package $args
42
+ npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath jsona-syntax.vsix $args
43
+
44
+ - name : Publish Release
45
+ uses : softprops/action-gh-release@v0.1.5
46
+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
47
+ with :
48
+ draft : false
49
+ files : jsona-syntax.vsix
50
+ prerelease : ${{ steps.check-tag.outputs.rc == 'true' }}
51
+ env :
52
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 12
12
"args" : [
13
13
" --extensionDevelopmentPath=${workspaceFolder}" ,
14
14
" --disable-extensions" ,
15
- " ${workspaceFolder}/test "
15
+ " ${workspaceFolder}/example "
16
16
]
17
17
},
18
18
]
Original file line number Diff line number Diff line change 1
- .vscode /**
2
- typings /**
3
- test /**
4
- lib /** /* .spec.js
5
- .editorconfig
6
- .gitignore
7
- .travis.yml
8
- jsconfig.json
1
+ **
2
+ ! syntaxes
3
+ ! icon.png
4
+ ! jsona.configuration.json
5
+ ! LICENSE
6
+ ! README.md
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " vscode-jsona" ,
2
+ "name" : " vscode-jsona-syntax " ,
3
3
"displayName" : " JSONA syntax" ,
4
4
"description" : " Adds syntax highlighting of JSONA files" ,
5
- "version" : " 0.1.5 " ,
5
+ "version" : " 0.2.0 " ,
6
6
"publisher" : " sigoden" ,
7
7
"license" : " MIT" ,
8
8
"engines" : {
15
15
"url" : " https://github.com/jsona/vscode-jsona-syntax"
16
16
},
17
17
"scripts" : {
18
- "pkg " : " vsce package"
18
+ "package " : " vsce package -o jsona-syntax.vsix "
19
19
},
20
20
"keywords" : [
21
21
" jsona" ,
You can’t perform that action at this time.
0 commit comments