Skip to content

Commit 79d2d17

Browse files
chore: update CI scripts (vuejs#3754)
1 parent cf43354 commit 79d2d17

File tree

6 files changed

+461
-812
lines changed

6 files changed

+461
-812
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@ jobs:
1010
release:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

15-
- uses: actions/setup-node@v3
15+
- uses: pnpm/action-setup@v2
1616
with:
17-
node-version: 18
17+
version: latest
1818

19-
- run: npm i -g pnpm ovsx
20-
- run: pnpm install --frozen-lockfile --no-optional
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: pnpm
23+
24+
- run: pnpm install -g ovsx
25+
- run: pnpm install --frozen-lockfile
2126
- run: pnpm run build:minify && pnpm ovsx publish
2227
working-directory: extensions/vscode
2328
env:

.github/workflows/test.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: testing
1+
name: test
22

33
on: [push, pull_request]
44

@@ -8,20 +8,22 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [16.x]
11+
node-version: [16]
1212
os: [macos-latest, windows-latest, ubuntu-latest]
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
16+
17+
- uses: pnpm/action-setup@v2
18+
with:
19+
version: latest
1620

17-
# install node
1821
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@v4
2023
with:
2124
node-version: ${{ matrix.node-version }}
25+
cache: pnpm
2226

23-
# install pnpm
24-
- run: npm i -g pnpm
25-
- run: pnpm install --frozen-lockfile --no-optional
26-
- run: pnpm run build-ci
27+
- run: pnpm install --frozen-lockfile
28+
- run: pnpm run build
2729
- run: pnpm run test

.github/workflows/update-html-data.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ jobs:
99
update-html-data:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313

14-
- uses: actions/setup-node@v3
14+
- uses: pnpm/action-setup@v2
1515
with:
16-
node-version: 18
16+
version: latest
1717

18-
# install deps
19-
- run: npm i -g pnpm
20-
- run: pnpm i
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: pnpm
22+
23+
- run: pnpm install
2124

2225
# update data
2326
- name: Update HTML Data

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"private": true,
33
"scripts": {
44
"build": "tsc -b",
5-
"build-ci": "tsc -b tsconfig.ci.json",
65
"watch": "npm run build && (npm run watch:base & npm run watch:vue & npm run watch:ts-plugin)",
76
"watch:base": "tsc -b -w",
87
"watch:vue": "cd ./extensions/vscode && npm run watch",
@@ -21,13 +20,11 @@
2120
"chrome": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=./extensions/vscode ../volar-starter"
2221
},
2322
"devDependencies": {
23+
"@lerna-lite/cli": "latest",
24+
"@lerna-lite/publish": "latest",
2425
"@volar/language-service": "~1.11.0",
2526
"typescript": "latest",
2627
"vite": "latest",
2728
"vitest": "latest"
28-
},
29-
"optionalDependencies": {
30-
"@lerna-lite/cli": "latest",
31-
"@lerna-lite/publish": "latest"
3229
}
3330
}

0 commit comments

Comments
 (0)