Skip to content

Commit

Permalink
fix(plugin): include out files in release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
tamj0rd2 committed Nov 19, 2020
1 parent fd85753 commit a9a586f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
},
"scripts": {
"shipit": "./scripts/shipit.sh",
"vscode:prepublish": "tsc -b ./tsconfig.json",
"test": "echo WARNING: there are no tests in the extension package yet"
},
"config": {
Expand Down
13 changes: 4 additions & 9 deletions packages/extension/scripts/shipit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,10 @@ function finish {
}
trap finish EXIT

CURRENT_VERSION_NUMBER="$(node ./scripts/get-marketplace-version.js)"
npx semantic-release
tsc -b ./tsconfig.json
print 'Built code'

semantic-release
print 'Semantic release complete'
UPDATED_VERSION_NUMBER="$(node ./scripts/get-marketplace-version.js)"

if [ "$CURRENT_VERSION_NUMBER" == "$UPDATED_VERSION_NUMBER" ]; then
print 'Not publishing the extension because there was no version increment'
else
print "Going to publish the extension under version ${UPDATED_VERSION_NUMBER}"
npx vsce publish -p $PUBLISHER_TOKEN $UPDATED_VERSION_NUMBER
fi
print 'Publishing to vsce is currently disabled. Do it manually' $RED
3 changes: 3 additions & 0 deletions packages/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"version": "1.0.0",
"description": "A typescript server plugin that adds some additional quickfixes to vscode",
"main": "./out/index.js",
"files": [
"out"
],
"scripts": {
"test": "jest",
"shipit": "npx semantic-release"
Expand Down

0 comments on commit a9a586f

Please sign in to comment.