Skip to content

Commit 76e551a

Browse files
committed
update publish script
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent e485851 commit 76e551a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: scripts/publish.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Publish
2-
3-
# sh scripts/publish.sh VSCE_KEY
2+
# publish the tutorial to the VSCode Marketplace
3+
# script requires a token
4+
# docs: https://code.visualstudio.com/api/working-with-extensions/publishing-extension
5+
# run: sh scripts/publish.sh {VSCE_KEY}
46

57
VSCE_KEY=$1
68
PACKAGE_VERSION=$(grep 'version' package.json \
@@ -14,4 +16,4 @@ git tag -a v$PACKAGE_VERSION -m "Releasing version v$PACKAGE_VERSION"
1416
git push origin v$PACKAGE_VERSION
1517

1618
# send to VSCode Marketplace via
17-
npx vsce publish -p $VSCE_KEY --packagePath ./$RELEASES_FOLDER/$OUTPUT_FILE --baseContentUrl $RAW_PATH --baseImagesUrl $RAW_PATH
19+
vsce publish -p $VSCE_KEY --packagePath ./$RELEASES_FOLDER/$OUTPUT_FILE --baseContentUrl $RAW_PATH --baseImagesUrl $RAW_PATH

0 commit comments

Comments
 (0)