Skip to content

Commit 57c3a07

Browse files
committed
chore: improve workflow performance
1 parent 3ea95c6 commit 57c3a07

File tree

4 files changed

+17
-25
lines changed

4 files changed

+17
-25
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,24 @@ jobs:
2828
- name: Install dependencies
2929
run: pnpm install
3030

31-
- name: Install Playwright
32-
run: pnpm run test:setup:ci
33-
3431
- name: Lint
3532
run: pnpm run lint
3633

3734
- name: Typecheck
3835
run: pnpm run typecheck && pnpm run dev:typecheck
3936

40-
- name: Test
41-
run: pnpm run test:coverage
42-
4337
- name: Build
4438
run: pnpm run build
4539

4640
- name: Publint
4741
run: pnpm run publint
4842

43+
- name: Install Playwright
44+
run: pnpm run test:setup
45+
46+
- name: Test
47+
run: pnpm run test:coverage
48+
4949
- name: Upload coverage to Codecov
5050
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/main' }}
5151
uses: codecov/codecov-action@v5

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ jobs:
3030
- name: Install dependencies
3131
run: pnpm install
3232

33+
- name: Build
34+
run: pnpm run build
35+
3336
- name: Install Playwright
34-
run: pnpm run test:setup:ci
37+
run: pnpm run test:setup
38+
39+
- name: Test
40+
run: pnpm run test
3541

3642
- name: Extract release notes
3743
run: pnpm releaselog --format=notes ${{ github.ref_name }} > RELEASE_NOTES.md
@@ -44,12 +50,6 @@ jobs:
4450
env:
4551
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4652

47-
- name: Test
48-
run: pnpm run test
49-
50-
- name: Build
51-
run: pnpm run build
52-
5353
- name: Get dist tag
5454
id: tag
5555
run: echo "tag=$(pnpm exec jiti scripts/dist-tag.ts '${{ github.ref_name }}')" >> $GITHUB_OUTPUT

demo/CodeGen.vue

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -538,17 +538,9 @@ onBeforeUnmount(() => {
538538
}
539539
540540
html.dark .message {
541-
background-color: color-mix(
542-
in srgb,
543-
var(--surface) 72%,
544-
var(--border) 28%
545-
);
541+
background-color: color-mix(in srgb, var(--surface) 72%, var(--border) 28%);
546542
color: var(--heading);
547-
border: 1px solid color-mix(
548-
in srgb,
549-
var(--border) 45%,
550-
transparent 55%
551-
);
543+
border: 1px solid color-mix(in srgb, var(--border) 45%, transparent 55%);
552544
}
553545
554546
.message.open {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
"dev": "vite",
1313
"build": "tsdown",
1414
"typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.vitest.json",
15-
"lint": "eslint . --fix",
15+
"lint": "eslint .",
16+
"lint:fix": "eslint . --fix",
1617
"format": "prettier . --write",
1718
"publint": "publint",
1819
"dev:build": "vite build",
1920
"dev:preview": "vite preview",
2021
"dev:typecheck": "vue-tsc -p ./demo",
2122
"test:setup": "playwright install chromium",
22-
"test:setup:ci": "playwright install --with-deps chromium",
2323
"docs": "jiti ./scripts/docs.ts",
2424
"release": "bumpp --execute \"pnpm run docs\" --all",
2525
"test": "vitest run",

0 commit comments

Comments
 (0)