File tree Expand file tree Collapse file tree 2 files changed +25
-37
lines changed Expand file tree Collapse file tree 2 files changed +25
-37
lines changed Original file line number Diff line number Diff line change @@ -10,38 +10,26 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- - name : Checkout code
14
- uses : actions/checkout@v4
15
-
16
- - name : Install Node.js
17
- uses : actions/setup-node@v4
18
- with :
19
- node-version : 18.x
20
-
21
- - name : Install Dependencies
22
- run : npm ci
23
-
24
- - name : Install VSCE
25
- run : npm install -g vsce
26
-
27
- - name : Update version and default in package.json
28
- run : |
29
- TAG_NAME=${{ github.ref_name }}
30
- VERSION=${TAG_NAME#v}
31
- VERSION=${VERSION%-beta}
32
- if [[ "$TAG_NAME" == *"-beta"* ]]; then
33
- jq --arg version "$VERSION" --arg default "beta" '.version = $version | .contributes.configuration.properties["dev-proxy-toolkit.version"].default = $default' package.json > package.tmp.json
34
- else
35
- jq --arg version "$VERSION" --arg default "stable" '.version = $version | .contributes.configuration.properties["dev-proxy-toolkit.version"].default = $default' package.json > package.tmp.json
36
- fi
37
- mv package.tmp.json package.json
38
-
39
- - name : Publish
40
- env :
41
- VSCE_PAT : ${{ secrets.VSCE_PAT }}
42
- run : |
43
- if [[ "$TAG_NAME" == *"-beta"* ]]; then
44
- vsce publish --pre-release
45
- else
46
- vsce publish
47
- fi
13
+ - name : Checkout code
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Install Node.js
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : 18.x
20
+
21
+ - name : Install Dependencies
22
+ run : npm ci
23
+
24
+ - name : Install VSCE
25
+ run : npm install -g vsce
26
+
27
+ - name : Publish
28
+ env :
29
+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
30
+ run : |
31
+ if [[ "${GITHUB_REF}" == *"-beta" ]]; then
32
+ vsce publish --pre-release
33
+ else
34
+ vsce publish
35
+ fi
Original file line number Diff line number Diff line change 2
2
"name" : " dev-proxy-toolkit" ,
3
3
"displayName" : " Dev Proxy Toolkit" ,
4
4
"description" : " Makes it easy to create and update Dev Proxy configuration files." ,
5
- "version" : " 0.8 .0" ,
5
+ "version" : " 0.9 .0" ,
6
6
"publisher" : " garrytrinder" ,
7
7
"engines" : {
8
8
"vscode" : " ^1.85.0"
130
130
}
131
131
}
132
132
},
133
- "preview" : true ,
133
+ "preview" : false ,
134
134
"pricing" : " Free" ,
135
135
"icon" : " dist/icon.png" ,
136
136
"homepage" : " https://github.com/garrytrinder/dev-proxy-toolkit/blob/main/README.md" ,
You can’t perform that action at this time.
0 commit comments