Skip to content

Commit a3c57b8

Browse files
fix: use VSCE GitHub Action with custom packaging
- Remove semantic-release-vsce plugin to avoid dependency conflicts - Use standard semantic-release with GitHub releases - Add VSCE GitHub Action step for marketplace publishing - Use setup-just action for cleaner installation - Leverage existing custom packaging (just package) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent ed88ec7 commit a3c57b8

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,8 @@ jobs:
3535
with:
3636
version: latest
3737

38-
- name: Install just
39-
run: |
40-
JUST_VERSION="1.42.4"
41-
ARCH="x86_64-unknown-linux-musl"
42-
wget -O just.tar.gz "https://github.com/casey/just/releases/download/${JUST_VERSION}/just-${JUST_VERSION}-${ARCH}.tar.gz"
43-
tar -xzf just.tar.gz
44-
chmod +x just
45-
sudo mv just /usr/local/bin/just
46-
just --version
38+
- name: Setup just
39+
uses: extractions/setup-just@v2
4740

4841
- name: Install dependencies
4942
run: pnpm install --frozen-lockfile --ignore-scripts
@@ -65,4 +58,11 @@ jobs:
6558
env:
6659
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6760
VSCE_PAT: ${{ secrets.VSCE_PAT }}
68-
run: pnpm run release
61+
run: pnpm run release
62+
63+
- name: Publish to VS Code Marketplace
64+
uses: lannonbr/[email protected]
65+
with:
66+
args: "publish --packagePath justlang-lsp-*.vsix"
67+
env:
68+
VSCE_TOKEN: ${{ secrets.VSCE_PAT }}

.releaserc.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@
1010
}
1111
],
1212
[
13-
"semantic-release-vsce",
13+
"@semantic-release/npm",
1414
{
15-
"packageVsix": false,
16-
"publishVsix": true,
17-
"publishOpenVSX": false
15+
"npmPublish": false
16+
}
17+
],
18+
[
19+
"@semantic-release/github",
20+
{
21+
"assets": [
22+
{
23+
"path": "justlang-lsp-*.vsix",
24+
"label": "VSCode Extension Package"
25+
}
26+
]
1827
}
1928
],
2029
[

0 commit comments

Comments
 (0)