Skip to content

Commit a740752

Browse files
committed
add publish script
Signed-off-by: shmck <[email protected]>
1 parent 9fe11aa commit a740752

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: scripts/publish.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Publish
2+
3+
PACKAGE_VERSION=$(grep 'version' package.json \
4+
| cut -d '"' -f4)
5+
RELEASES_FOLDER=releases
6+
OUTPUT_FILE=coderoad-$PACKAGE_VERSION.vsix
7+
RAW_PATH=https://github.com/coderoad/coderoad-vscode/blob/master
8+
9+
# comment out until confident in testing process
10+
git tag -a v$PACKAGE_VERSION -m "Releasing version v$PACKAGE_VERSION"
11+
git push origin v$PACKAGE_VERSION
12+
13+
# send to VSCode Marketplace via
14+
vsce publish -p $VSCE_KEY --packagePath ./$RELEASES_FOLDER/$OUTPUT_FILE --baseContentUrl $RAW_PATH --baseImagesUrl $RAW_PATH

0 commit comments

Comments
 (0)