Skip to content

Commit 5dcd981

Browse files
committed
Add step to publish to open-vsx
1 parent 0ad96ce commit 5dcd981

File tree

3 files changed

+472
-2
lines changed

3 files changed

+472
-2
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,36 @@ jobs:
8383
with:
8484
node-version-file: ".nvmrc"
8585

86+
- name: Install dependencies
87+
run: npm ci
88+
8689
- name: Publish to VS Code Marketplace
8790
if: ${{ inputs.prerelease == false }}
8891
run: |
8992
echo "Publishing ${{ steps.vsix_info.outputs.vsix_path }}"
93+
npx --no-install @vscode/vsce --version
9094
if [ -f "./artifacts/release.md" ]; then
9195
echo "Publishing with changelog"
92-
npx vsce publish --packagePath "${{ steps.vsix_info.outputs.vsix_path }}" --releaseNotes "./artifacts/release.md"
96+
npx --no-install @vscode/vsce publish --packagePath "${{ steps.vsix_info.outputs.vsix_path }}" --changelog-path "./artifacts/release.md"
9397
else
9498
echo "Publishing without changelog (file not found)"
95-
npx vsce publish --packagePath "${{ steps.vsix_info.outputs.vsix_path }}"
99+
npx --no-install @vscode/vsce publish --packagePath "${{ steps.vsix_info.outputs.vsix_path }}"
96100
fi
97101
env:
98102
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
99103

104+
- name: Publish to Open-vsx registery
105+
if: ${{ inputs.prerelease == false }}
106+
run: |
107+
echo "Publishing ${{ steps.vsix_info.outputs.vsix_path }}"
108+
if [ -f "./artifacts/release.md" ]; then
109+
echo "Publishing with changelog"
110+
npx --no-install ovsx publish --packagePath "${{ steps.vsix_info.outputs.vsix_path }}" --changelog-path "./artifacts/release.md" --pat ${{ secrets.OVSX_MARKETPLACE_TOKEN }}
111+
else
112+
echo "Publishing to Open-vsx registery"
113+
npx --no-install ovsx --packagePath "${{ steps.vsix_info.outputs.vsix_path }}" --pat ${{ secrets.OVSX_MARKETPLACE_TOKEN }}
114+
fi
115+
100116
- name: Create Release
101117
uses: ncipollo/release-action@v1
102118
with:

0 commit comments

Comments
 (0)