File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
- name : extension
1
+ name : extension-build
2
2
3
3
on :
4
4
push :
23
23
24
24
- name : Build
25
25
run : pnpm run build && pnpm --filter volar run pack
26
-
27
- - name : Upload Artifact
28
- uses : actions/upload-artifact@v4
29
- with :
30
- name : extensions
31
- path : ./extensions/vscode/volar-*.vsix
Original file line number Diff line number Diff line change 1
- name : extension
1
+ name : extension-release
2
2
3
3
on :
4
4
workflow_dispatch :
@@ -16,15 +16,20 @@ jobs:
16
16
node-version : 20
17
17
cache : pnpm
18
18
19
+ - name : Install global tools
20
+ run : pnpm install -g @vscode/vsce ovsx
21
+
19
22
- name : Install dependencies
20
- run : pnpm install -g ovsx && pnpm install - -frozen-lockfile
23
+ run : pnpm install --frozen-lockfile
21
24
22
25
- name : Build
23
26
run : pnpm run build && pnpm --filter volar run build:prod
24
27
25
- - name : Publish
28
+ - name : Publish to Open VSX
29
+ id : publish_ovsx
26
30
run : |
27
31
VERSION=$(jq -r .version package.json)
32
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
28
33
if [[ "$VERSION" == *-* ]]; then
29
34
echo "Detected prerelease version: $VERSION"
30
35
pnpm ovsx publish --pre-release
35
40
working-directory : extensions/vscode
36
41
env :
37
42
OVSX_PAT : ${{ secrets.OVSX_PAT }}
43
+
44
+ - name : Publish to VSCode Marketplace
45
+ if : ${{ !contains(steps.publish_ovsx.outputs.version, '-') }}
46
+ working-directory : extensions/vscode
47
+ env :
48
+ VSCE_TOKEN : ${{ secrets.VSCE_TOKEN }}
49
+ run : vsce publish
You can’t perform that action at this time.
0 commit comments