Skip to content

Commit 2cf997c

Browse files
Add CI step to publish releases to open-vsx registry.
1 parent df39dc3 commit 2cf997c

3 files changed

Lines changed: 27 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,25 @@ jobs:
5757
node-version: node
5858

5959
- name: Packages installation
60-
run: npm install @vscode/vsce --save-dev
60+
run: npm install @vscode/vsce ovsx --save-dev
61+
62+
- name: Package extension
63+
run: npm run vsix:package
6164

6265
- name: Publish to Visual Studio Marketplace
6366
run: |
6467
if [[ "${{ github.ref_name }}" == *"-"* ]]; then
65-
npm run deploy-prerelease
68+
npm run deploy-vsix-prerelease
6669
else
67-
npm run deploy
70+
npm run deploy-vsix
6871
fi
6972
env:
7073
VSCE_PAT: ${{ secrets.VSCE_PAT }}
74+
75+
- name: Publish to Open VSX Registry (release only)
76+
run: |
77+
if [[ "${{ github.ref_name }}" != *"-"* ]]; then
78+
npm run deploy-ovsx-vsix
79+
fi
80+
env:
81+
OVSX_PAT: ${{ secrets.OPEN_VSX_PUBLISH }}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.4.2]
9+
10+
### Added
11+
12+
* CI : publish to open-vsx store
13+
814
## [2.4.1]
915

1016
### Changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ledger-dev-tools",
33
"displayName": "Ledger Dev Tools",
44
"description": "Tools to accelerate development of apps for Ledger devices.",
5-
"version": "2.4.1",
5+
"version": "2.4.2",
66
"publisher": "LedgerHQ",
77
"license": "Apache",
88
"icon": "resources/ledger-square.png",
@@ -379,8 +379,13 @@
379379
"lint": "eslint . --format stylish",
380380
"lint:fix": "eslint . --format stylish --fix",
381381
"test": "node ./out/test/runTest.js",
382+
"vsix:package": "vsce package",
382383
"deploy": "vsce publish",
383-
"deploy-prerelease": "vsce publish --pre-release"
384+
"deploy-prerelease": "vsce publish --pre-release",
385+
"deploy-vsix": "vsce publish -i *.vsix",
386+
"deploy-vsix-prerelease": "vsce publish --pre-release -i *.vsix",
387+
"deploy-ovsx": "ovsx publish",
388+
"deploy-ovsx-vsix": "ovsx publish *.vsix"
384389
},
385390
"dependencies": {
386391
"@formkit/auto-animate": "^0.9.0",

0 commit comments

Comments
 (0)