Skip to content

Commit d8a54b5

Browse files
charlespwdkarreiro
andauthored
Publish the extension on OpenVSX marketplace (#992)
Co-authored-by: Guilherme Carreiro <[email protected]>
1 parent ce7c01e commit d8a54b5

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
99

1010
env:
1111
VSCE_PAT: ${{ secrets.VSCE_PAT }}
12+
OVSX_PAT: ${{ secrets.OPENVSX_TOKEN }}
1213
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1314
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1415
npm_config_registry: "https://registry.npmjs.org"
@@ -73,3 +74,7 @@ jobs:
7374
- name: VS Code Marketplace publish
7475
if: steps.changesets.outputs.hasChangesets == 'false' && steps.marketplace-version.outputs.version != steps.package-version.outputs.version
7576
run: yarn publish:vsce
77+
78+
- name: Open VSX Registry publish
79+
if: steps.changesets.outputs.hasChangesets == 'false' && steps.marketplace-version.outputs.version != steps.package-version.outputs.version
80+
run: yarn publish:ovsx

.github/workflows/vscode-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: workflow_dispatch
44

55
env:
66
VSCE_PAT: ${{ secrets.VSCE_PAT }}
7+
OVSX_PAT: ${{ secrets.OPENVSX_TOKEN }}
78
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
89
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
910
npm_config_registry: "https://registry.npmjs.org"
@@ -34,3 +35,6 @@ jobs:
3435

3536
- name: VS Code Marketplace publish
3637
run: yarn publish:vsce
38+
39+
- name: Open VSX Registry publish
40+
run: yarn publish:ovsx

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"playground": "yarn --cwd packages/codemirror-language-client run dev:playground",
3131
"prebuild:ts": "rm -rf packages/*/dist",
3232
"publish:vsce": "yarn --cwd packages/vscode-extension publish:vsce",
33+
"publish:ovsx": "yarn --cwd packages/vscode-extension publish:ovsx",
3334
"release": "yarn workspace release-orchestrator run start",
3435
"postrelease": "yarn --cwd packages/prettier-plugin-liquid prerelease",
3536
"reset": "find . -name \"node_modules\" -type d -prune -exec rm -rf '{}' +",

packages/vscode-extension/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"preinstall": "sh scripts/fetch-syntaxes.sh",
5151
"pretest": "yarn run test:build && yarn run dev:build && yarn run lint",
5252
"publish:vsce": "vsce publish --no-dependencies $npm_package_version",
53+
"publish:ovsx": "ovsx publish $npm_package_version",
5354
"test": "vitest",
5455
"test:build": "tsc -p . --outDir out",
5556
"test:watch": "tsc -p . -w --outDir out",
@@ -80,6 +81,7 @@
8081
"@vscode/test-electron": "^2.2.0",
8182
"@vscode/test-web": "^0.0.62",
8283
"@vscode/vsce": "^2.21.0",
84+
"ovsx": "^0.10.4",
8385
"chai": "^4.3.4",
8486
"eslint": "^8.28.0",
8587
"eslint-config-prettier": "^8.3.0",

0 commit comments

Comments
 (0)