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

build: Add Open VSX Publishing #102

Merged
merged 1 commit into from
Aug 1, 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
25 changes: 21 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,20 @@ jobs:
- name: Install dependencies
run: npm install

- name: Build and Publish
run: npm run publish:prerelease
- name: Build and Package
run: npm run package:release

- name: Publish (Microsoft Extension Gallery)
run: npm run publish:vsce:prerelease
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

- name: Build and Publish (Open VSX Registry)
run: npm run publish:ovsx:prerelease
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}


release:
name: Release (Full)
runs-on: 'ubuntu-latest'
Expand All @@ -50,7 +59,15 @@ jobs:
- name: Install dependencies
run: npm install

- name: Build and Publish
run: npm run publish:release
- name: Build and Package
run: npm run package:release

- name: Build and Publish (Microsoft Extension Gallery)
run: npm run publish:vsce:release
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

- name: Build and Publish (Open VSX Registry)
run: npm run publish:ovsx:release
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@
"homepage": "https://github.com/CoderLine/mocha-vscode#readme",
"main": "./out/extension.js",
"scripts": {
"publish:release": "npm run compile && tsx ./scripts/prerelease.mts && npx @vscode/vsce publish",
"publish:prerelease": "npm run compile && tsx ./scripts/prerelease.mts --pre-release && npx @vscode/vsce publish --pre-release",
"publish:vsce:release": "npx @vscode/vsce publish",
"publish:vsce:prerelease": "npx @vscode/vsce publish --pre-release",
"publish:ovsx:release": "npx ovsx publish",
"publish:ovsx:prerelease": "npx ovsx publish --pre-release",
"package:release": "npm run compile && tsx ./scripts/prerelease.mts && npx @vscode/vsce package",
"package:prerelease": "npm run compile && tsx ./scripts/prerelease.mts --pre-release && npx @vscode/vsce package --pre-release",
"vscode:prepublish": "npm run compile",
Expand Down
Loading