Skip to content

Commit 4aeb412

Browse files
committed
ci: generate version files before build:packages on Windows smoke build:packages lists workspaces non-topologically, so on a clean checkout a referenced package's generated version.ts is missing when a dependent compiles (tsc TS2307 on './version.js'). Generate all version files via the workspace prebuild step first.
1 parent 5c90a93 commit 4aeb412

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/windows-deploy-check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ jobs:
104104
- name: Install dependencies
105105
run: npm ci
106106

107+
# build:packages lists workspaces in a non-topological order, so on a
108+
# clean checkout a referenced package's generated version.ts may not exist
109+
# yet when a dependent compiles. Generate all version/bb-name files first.
110+
- name: Generate version files
111+
run: npm run prebuild --workspaces --if-present
112+
107113
- name: Build publishable packages
108114
run: npm run build:packages
109115

0 commit comments

Comments
 (0)