Skip to content

Commit da282a4

Browse files
authored
chore: add option to lint prior to build (#260)
1 parent 213ef99 commit da282a4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/reusable-lint.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ on:
77
required: false
88
default: false
99
type: boolean
10-
10+
build:
11+
required: false
12+
default: false
13+
type: boolean
14+
1115
jobs:
1216
lint:
1317
runs-on: ubuntu-latest
@@ -22,5 +26,8 @@ jobs:
2226
run: npx @skypack/package-check
2327
# Install dependencies:
2428
- run: npm ci --ignore-scripts
29+
# Build the package(s)
30+
- if: ${{inputs.build}}
31+
run: npm run build
2532
# Run the linting command:
2633
- run: npm run lint

0 commit comments

Comments
 (0)