File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -305,14 +305,23 @@ jobs:
305
305
- name : Decompress npm package
306
306
run : tar -xzf package.tar.gz
307
307
308
+ # NOTE@jsjoeio - we do this so we can strip out the v
309
+ # i.e. v4.9.1 -> 4.9.1
310
+ - name : Get and set VERSION
311
+ run : |
312
+ TAG="${{ inputs.version || github.ref_name }}"
313
+ echo "VERSION=${TAG#v}" >> $GITHUB_ENV
314
+
308
315
- name : Modify version
316
+ env :
317
+ VERSION : ${{ env.VERSION )}}
309
318
run : |
310
319
echo "Updating version in root package.json"
311
- npm version --prefix release ${{ inputs.version || github.ref_name }}
320
+ npm version --prefix release "$VERSION"
312
321
313
322
echo "Updating version in lib/vscode/product.json"
314
323
tmp=$(mktemp)
315
- jq '.codeServerVersion = "${{ inputs.version || github.ref_name }} "' release/lib/vscode/product.json > "$tmp" && mv "$tmp" release/lib/vscode/product.json
324
+ jq '.codeServerVersion = "$VERSION "' release/lib/vscode/product.json > "$tmp" && mv "$tmp" release/lib/vscode/product.json
316
325
317
326
- name : Compress release package
318
327
run : tar -czf package.tar.gz release
You can’t perform that action at this time.
0 commit comments