Skip to content

Commit b88b3c8

Browse files
committed
11
1 parent daadc8e commit b88b3c8

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

packages/vscode/.github/workflows/release.yml

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,25 @@ name: Release VS Code Extension
22

33
on:
44
workflow_dispatch: {}
5-
push:
6-
tags:
7-
- 'v*'
8-
- 'vscode-v*'
95

106
jobs:
11-
release:
7+
publish:
128
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
target:
13+
[
14+
win32-x64,
15+
win32-arm64,
16+
darwin-x64,
17+
darwin-arm64,
18+
linux-x64,
19+
linux-arm64,
20+
linux-armhf,
21+
alpine-x64,
22+
alpine-arm64,
23+
]
1324
defaults:
1425
run:
1526
working-directory: packages/vscode
@@ -34,23 +45,7 @@ jobs:
3445
- name: Build
3546
run: npm run build
3647

37-
- name: Package VSIX
38-
run: npx vsce package
39-
40-
- name: Upload VSIX artifact
41-
uses: actions/upload-artifact@v4
42-
with:
43-
name: rstest-vsix
44-
path: packages/vscode/*.vsix
45-
46-
- name: Publish to VS Code Marketplace
47-
if: ${{ secrets.VSCE_PAT != '' }}
48+
- name: Publish to VS Code Marketplace (target)
4849
env:
4950
VSCE_PAT: ${{ secrets.VSCE_PAT }}
50-
run: npx vsce publish
51-
52-
- name: Create GitHub Release (tag push only)
53-
if: startsWith(github.ref, 'refs/tags/')
54-
uses: softprops/action-gh-release@v2
55-
with:
56-
files: packages/vscode/*.vsix
51+
run: npx vsce publish --target ${{ matrix.target }}

packages/vscode/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@ Common commands (run from this package):
3434
- `npm run typecheck` — TypeScript noEmit check
3535
- `npm run test:unit` — Unit tests via Rstest
3636
- `npm run test:e2e` — VS Code Extension Host E2E tests
37+
38+
### Packaging & Publishing
39+
40+
- Local package (current platform): `npm run package:vsix`
41+
- Publish (current platform): `npm run publish:vsce` (requires `VSCE_PAT`)
42+
43+
CI
44+
- On tag push or manual dispatch, GitHub Actions runs on Linux and publishes for all platforms using `vsce publish --target` (win32/darwin/linux; x64 and arm64).
45+
- Configure the `VSCE_PAT` repository secret for Marketplace publishing.

0 commit comments

Comments
 (0)