Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use extension dependencies #59

Merged
merged 4 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
run: |
yarn lint
vsce package
- name: Modify package.json for OVSX
# ms-vscode extensions not available on OpenVSX registry, so remove dependencies
run: |
sed -i 's/"ms-vscode.*",//g' package.json
- name: Package Extension for OVSX
run: |
vsce package -o ovsx-raspberry-pi-pico.vsix
- name: Test PAT
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
env:
Expand All @@ -43,12 +50,16 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: raspberry-pi-pico
path: raspberry-pi-pico-*.vsix
path: |
raspberry-pi-pico-*.vsix
ovsx-raspberry-pi-pico.vsix
- name: Add Release Asset
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: raspberry-pi-pico-*.vsix
files: |
raspberry-pi-pico-*.vsix
ovsx-raspberry-pi-pico.vsix
- name: Publish Extension
if: startsWith(github.ref, 'refs/tags/')
env:
Expand All @@ -58,4 +69,4 @@ jobs:
- name: Publish Extension to OVSX
if: startsWith(github.ref, 'refs/tags/')
run: |
npx ovsx publish raspberry-pi-pico-*.vsix -p ${{ secrets.OPEN_VSX_PAT }}
npx ovsx publish ovsx-raspberry-pi-pico.vsix -p ${{ secrets.OPEN_VSX_PAT }}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
"Snippets",
"Other"
],
"extensionPack": [
"marus25.cortex-debug",
"extensionDependencies": [
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack",
"ms-vscode.vscode-serial-monitor"
"ms-vscode.vscode-serial-monitor",
"marus25.cortex-debug"
],
"main": "./dist/extension.cjs",
"markdown": "github",
Expand Down
Loading