Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit70a71af

Browse files
committed
ovsx publish script
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent229c761 commit70a71af

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

‎scripts/publish.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,28 @@
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
87
PACKAGE_VERSION=$(grep'version' package.json \
98
| cut -d'"' -f4)
109
RELEASES_FOLDER=releases
1110
OUTPUT_FILE=coderoad-$PACKAGE_VERSION.vsix
1211
RAW_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
1519
git tag -a v$PACKAGE_VERSION -m"Releasing version v$PACKAGE_VERSION"
1620
git 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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp