Skip to content

Commit b0102bd

Browse files
committed
Auto merge of #12652 - lnicola:openvsx, r=lnicola
internal: Try to publish releases to OpenVSX
2 parents 6407727 + 21642a2 commit b0102bd

File tree

3 files changed

+125
-2
lines changed

3 files changed

+125
-2
lines changed

.github/workflows/release.yaml

+13-2
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,24 @@ jobs:
246246
- run: npm ci
247247
working-directory: ./editors/code
248248

249-
- name: Publish Extension (release)
249+
- name: Publish Extension (Code Marketplace, release)
250250
if: github.ref == 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
251251
working-directory: ./editors/code
252252
# token from https://dev.azure.com/rust-analyzer/
253253
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
254254

255-
- name: Publish Extension (nightly)
255+
- name: Publish Extension (OpenVSX, release)
256+
if: github.ref == 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
257+
working-directory: ./editors/code
258+
# token from https://dev.azure.com/rust-analyzer/
259+
run: npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
260+
261+
- name: Publish Extension (Code Marketplace, nightly)
256262
if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
257263
working-directory: ./editors/code
258264
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release
265+
266+
- name: Publish Extension (OpenVSX, nightly)
267+
if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
268+
working-directory: ./editors/code
269+
run: npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release

editors/code/package-lock.json

+111
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

editors/code/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"esbuild": "^0.14.27",
5050
"eslint": "^8.11.0",
5151
"eslint-config-prettier": "^8.5.0",
52+
"ovsx": "^0.5.1",
5253
"prettier": "^2.6.2",
5354
"tslib": "^2.3.0",
5455
"typescript": "^4.6.3",

0 commit comments

Comments
 (0)