File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Extension on VSCode marketplace and Open VSX Registry
2+ on :
3+ push :
4+ tags :
5+ - " simplicityhl-vscode-v*"
6+ jobs :
7+ Extension :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ - uses : actions/setup-node@v4
12+ with :
13+ node-version : 20
14+
15+ - run : npm ci
16+ working-directory : vscode
17+
18+ - name : Verify tag matches extension version
19+ working-directory : vscode
20+ shell : bash
21+ run : |
22+ TAG="${GITHUB_REF##*/}"
23+ VERSION_TAG="${TAG#simplicityhl-vscode-v}"
24+
25+ PACKAGE_VERSION=$(jq -r '.version' package.json)
26+
27+ echo "Tag version: $VERSION_TAG"
28+ echo "Package version: $PACKAGE_VERSION"
29+
30+ if [ "$VERSION_TAG" != "$PACKAGE_VERSION" ]; then
31+ echo "Tag version ($VERSION_TAG) does not match package.json version ($PACKAGE_VERSION)"
32+ exit 1
33+ fi
34+
35+ - name : Publish to Open VSX Registry
36+ uses : HaaLeo/publish-vscode-extension@v2
37+ with :
38+ pat : ${{ secrets.OPEN_VSX_TOKEN }}
39+ packagePath : vscode
40+
41+ - name : Publish to Visual Studio Marketplace
42+ uses : HaaLeo/publish-vscode-extension@v2
43+ with :
44+ pat : ${{ secrets.VS_MARKETPLACE_TOKEN }}
45+ registryUrl : https://marketplace.visualstudio.com
46+ packagePath : vscode
You can’t perform that action at this time.
0 commit comments