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

Commite4ab477

Browse files
authored
Merge pull requestcoderoad#507 from coderoad/ovsx-publish-script
Add ovsx publish script
2 parents229c761 +549a78b commite4ab477

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

‎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

‎web-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp