File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " coderoad" ,
3- "version" : " 0.14.4 " ,
3+ "version" : " 0.14.5 " ,
44 "description" : " Play interactive coding tutorials in your editor" ,
55 "keywords" : [
66 " tutorial" ,
Original file line number Diff line number Diff line change 44# docs: https://code.visualstudio.com/api/working-with-extensions/publishing-extension
55# run: sh scripts/publish.sh {VSCE_KEY}
66
7- VSCE_KEY=$1
87PACKAGE_VERSION=$( grep ' version' package.json \
98 | cut -d ' "' -f4)
109RELEASES_FOLDER=releases
1110OUTPUT_FILE=coderoad-$PACKAGE_VERSION .vsix
1211RAW_PATH=https://github.com/coderoad/coderoad-vscode/blob/master
1312
13+ if [[ -z " $VSCE_KEY " ]] && [[ -z " $OVSX_KEY " ]]; then
14+ echo " VSCE_KEY or OVSX_KEY is required"
15+ exit 1;
16+ fi
17+
1418# comment out until confident in testing process
1519git tag -a v$PACKAGE_VERSION -m " Releasing version v$PACKAGE_VERSION "
1620git push origin v$PACKAGE_VERSION
1721
18- # send to VSCode Marketplace via
19- vsce publish -p $VSCE_KEY --packagePath ./$RELEASES_FOLDER /$OUTPUT_FILE --baseContentUrl $RAW_PATH --baseImagesUrl $RAW_PATH
22+ # send to VSCode Marketplace
23+ if ! [[ -z " $VSCE_KEY " ]]; then
24+ echo " publishing to vscode marketplace..."
25+ npx vsce publish -p $VSCE_KEY --packagePath ./$RELEASES_FOLDER /$OUTPUT_FILE --baseContentUrl $RAW_PATH --baseImagesUrl $RAW_PATH
26+ fi
27+ # send to Open-VSX Marketplace (https://github.com/eclipse/openvsx/wiki/Publishing-Extensions)
28+ if ! [[ -z " $OVSX_KEY " ]]; then
29+ echo " publishing to open-vsx marketplace..."
30+ npx ovsx publish -p $OVSX_KEY ./$RELEASES_FOLDER /$OUTPUT_FILE --baseContentUrl $RAW_PATH --baseImagesUrl $RAW_PATH "
31+ fi
Original file line number Diff line number Diff line change 11{
22 "name" : " coderoad-app" ,
3- "version" : " 0.14.4 " ,
3+ "version" : " 0.14.5 " ,
44 "private" : true ,
55 "scripts" : {
66 "build" : " react-app-rewired build" ,
You can’t perform that action at this time.
0 commit comments