Skip to content

Commit 8c3584c

Browse files
committed
chore: create manual-release.yml
1 parent bd12c1d commit 8c3584c

File tree

2 files changed

+81
-1
lines changed

2 files changed

+81
-1
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Manual Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish-npm:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: pnpm/action-setup@v4
13+
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 24
17+
cache: pnpm
18+
19+
- name: Install Lerna Lite
20+
run: pnpm add -g @lerna-lite/cli @lerna-lite/publish
21+
22+
- name: Install dependencies
23+
run: pnpm install --frozen-lockfile
24+
25+
- name: Build
26+
run: npm run build
27+
28+
- name: Publish to NPM
29+
env:
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: |
32+
lerna publish from-package --yes
33+
34+
publish-vscode-marketplace:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- uses: pnpm/action-setup@v4
40+
41+
- uses: actions/setup-node@v4
42+
with:
43+
node-version: 24
44+
cache: pnpm
45+
46+
- name: Install global tools
47+
run: pnpm install -g @vscode/vsce
48+
49+
- name: Install dependencies
50+
run: pnpm install --frozen-lockfile
51+
52+
- name: Publish to VSCode Marketplace
53+
working-directory: extensions/vscode
54+
env:
55+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
56+
run: vsce publish
57+
58+
publish-open-vsx:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v4
62+
63+
- uses: pnpm/action-setup@v4
64+
65+
- uses: actions/setup-node@v4
66+
with:
67+
node-version: 24
68+
cache: pnpm
69+
70+
- name: Install global tools
71+
run: pnpm install -g ovsx
72+
73+
- name: Install dependencies
74+
run: pnpm install --frozen-lockfile
75+
76+
- name: Publish to Open VSX
77+
working-directory: extensions/vscode
78+
env:
79+
OVSX_PAT: ${{ secrets.OVSX_PAT }}
80+
run: ovsx publish

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
- name: Publish to VSCode Marketplace
8585
working-directory: extensions/vscode
8686
env:
87-
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
87+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
8888
run: vsce publish
8989

9090
publish-open-vsx:

0 commit comments

Comments
 (0)