Skip to content

Commit 401863d

Browse files
committed
chore: Add preflight to check
1 parent ef3dfb9 commit 401863d

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ jobs:
7171
mise exec -- printenv NODE_OPTIONS || true
7272
task setup
7373
74+
- name: task package
75+
timeout-minutes: 2
76+
run: |
77+
task package
78+
7479
- name: Extract commit context from conventional commit
7580
id: extract_context
7681
shell: bash
@@ -98,11 +103,6 @@ jobs:
98103
echo "context=" >> "$GITHUB_OUTPUT"
99104
fi
100105
101-
- name: task build
102-
timeout-minutes: 2 # expected under 1 minutes
103-
run: |
104-
task build
105-
106106
- name: Run context-specific command
107107
if: >-
108108
steps.extract_context.outputs.context != '' &&
@@ -120,11 +120,6 @@ jobs:
120120
run: |
121121
task docs
122122
123-
- name: task package
124-
timeout-minutes: 2
125-
run: |
126-
task package
127-
128123
build:
129124
name: ${{ matrix.name }}
130125

@@ -472,6 +467,7 @@ jobs:
472467
check: # This job does nothing and is only used for the branch protection
473468
needs:
474469
- build
470+
- preflight
475471

476472
permissions:
477473
checks: read # codecov

0 commit comments

Comments
 (0)