Skip to content

Commit be2800e

Browse files
committed
refactor: Separate installation and build from testing and linting
1 parent 851f194 commit be2800e

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.github/workflows/lint-and-type.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ jobs:
2929
node-version: ${{ matrix.node-version }}
3030
cache: pnpm
3131

32-
- name: Install dependencies and run tests
32+
- name: Install dependencies and build
3333
run: |
3434
pnpm install --frozen-lockfile
35+
pnpm build
36+
37+
- name: Run linters
38+
run: |
3539
pnpm lint:check-types
3640
pnpm lint:eslint

.github/workflows/size-limit.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
node-version: ${{ matrix.node-version }}
3030
cache: pnpm
3131

32-
- name: Install dependencies and run size limit check
32+
- name: Install dependencies and build
3333
run: |
3434
pnpm install --frozen-lockfile
35-
pnpm lint:size
35+
pnpm build
36+
37+
- name: Run size limit check
38+
run: pnpm lint:size

package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212
"inspect:eslint-config": "pnpx @eslint/config-inspector@latest",
1313
"lint:attw": "pnpm --filter \"./packages/*\" lint:attw",
1414
"lint:check-types": "pnpm --filter \"./packages/*\" lint:check-types",
15-
"lint:eslint": "pnpm build && pnpm lint:eslint:dev",
16-
"lint:eslint:dev": "eslint . --max-warnings 0 --report-unused-disable-directives",
17-
"lint:eslint:interactive": "pnpm build && pnpm lint:eslint:interactive:dev",
18-
"lint:eslint:interactive:dev": "pnpx eslint-interactive@latest . --fix --max-warnings 0 --report-unused-disable-directives",
15+
"lint:eslint": "eslint . --max-warnings 0 --report-unused-disable-directives",
16+
"lint:eslint:interactive": "pnpx eslint-interactive@latest . --fix --max-warnings 0 --report-unused-disable-directives",
1917
"lint:format": "prettier --write .",
2018
"lint:publint": "pnpm --filter \"./packages/*\" version-package:publint",
2119
"lint:size": "pnpm --filter \"./packages/*\" lint:size",

0 commit comments

Comments
 (0)