From a7407525dd9a3bcd9352bc02d7dfeb94c3b7b54a Mon Sep 17 00:00:00 2001 From: shmck Date: Sun, 3 May 2020 13:52:01 -0700 Subject: [PATCH] add publish script Signed-off-by: shmck --- scripts/publish.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/publish.sh diff --git a/scripts/publish.sh b/scripts/publish.sh new file mode 100644 index 00000000..6c465d76 --- /dev/null +++ b/scripts/publish.sh @@ -0,0 +1,14 @@ +# Publish + +PACKAGE_VERSION=$(grep 'version' package.json \ + | cut -d '"' -f4) +RELEASES_FOLDER=releases +OUTPUT_FILE=coderoad-$PACKAGE_VERSION.vsix +RAW_PATH=https://github.com/coderoad/coderoad-vscode/blob/master + +# comment out until confident in testing process +git tag -a v$PACKAGE_VERSION -m "Releasing version v$PACKAGE_VERSION" +git push origin v$PACKAGE_VERSION + +# send to VSCode Marketplace via +vsce publish -p $VSCE_KEY --packagePath ./$RELEASES_FOLDER/$OUTPUT_FILE --baseContentUrl $RAW_PATH --baseImagesUrl $RAW_PATH