-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
55 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,8 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
repository: software-mansion-labs/vscode-js-debug | ||
path: packages/vscode-js-debug | ||
- name: Enforce HTTPS for submodules | ||
run: git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
|
@@ -39,8 +37,16 @@ jobs: | |
|
||
- name: Install node dependencies | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
run: npm i | ||
run: npm ci | ||
|
||
# - name: Lint extension | ||
# working-directory: ${{ env.WORKING_DIRECTORY }} | ||
# run: npm run lint | ||
|
||
- name: Lint extension | ||
- name: Test packaging | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
run: npm run lint | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
npm install -g @vscode/vsce | ||
vsce package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,9 @@ jobs: | |
with: | ||
ref: ${{ github.event.inputs.ref }} | ||
|
||
- name: Enforce HTTPS for submodules | ||
run: git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -69,6 +72,8 @@ jobs: | |
- name: Build and publish to Visual Studio Marketplace | ||
uses: HaaLeo/publish-vscode-extension@v1 | ||
id: vs_marketplace_publish | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
target: ${{ steps.set_targets.outputs.targets }} | ||
pat: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} | ||
|
@@ -77,6 +82,8 @@ jobs: | |
|
||
- name: Publish to Open VSX Registry | ||
uses: HaaLeo/publish-vscode-extension@v1 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
target: ${{ steps.set_targets.outputs.targets }} | ||
pat: ${{ secrets.OPENVSX_MARKETPLACE_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,9 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Enforce HTTPS for submodules | ||
run: git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[submodule "packages/simulator-server"] | ||
path = packages/simulator-server | ||
url = https://github.com/software-mansion-labs/simulator-server.git | ||
url = git@github.com:software-mansion-labs/simulator-server.git | ||
[submodule "packages/vscode-js-debug"] | ||
path = packages/vscode-js-debug | ||
url = https://github.com/software-mansion-labs/vscode-js-debug.git | ||
url = git@github.com:software-mansion-labs/vscode-js-debug.git | ||
[submodule "packages/chrome-devtools-ui"] | ||
path = packages/chrome-devtools-ui | ||
url = https://github.com/software-mansion-labs/chrome-devtools-ui.git | ||
url = git@github.com:software-mansion-labs/chrome-devtools-ui.git | ||
[submodule "packages/redux-devtools-expo-dev-plugin"] | ||
path = packages/redux-devtools-expo-dev-plugin | ||
url = https://github.com/software-mansion-labs/redux-devtools-expo-dev-plugin.git | ||
url = git@github.com:software-mansion-labs/redux-devtools-expo-dev-plugin.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/vscode-extension/scripts/init-submodules-if-not-present.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# Accepts multiple submodules, initializing them if they are empty. | ||
|
||
for dir in "$@"; do | ||
if [ -z "$(ls -A "$dir")" ]; then | ||
echo "Submodule $(basename "$dir") is empty. Initializing..." | ||
git submodule update --init "$dir" | ||
else | ||
echo "Submodule $(basename "$dir") is not empty. Skipping initialization." | ||
fi | ||
done |