mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
build stack-cli's workspace deps in emulator CI
Switch the CLI build step from `pnpm --filter @stackframe/stack-cli run build` to `turbo run build --filter=@stackframe/stack-cli...` so that stack-cli's workspace dependencies (@stackframe/js and @stackframe/stack-shared) also get compiled to their dist/ outputs. Without them, `node dist/index.js` fails with ERR_MODULE_NOT_FOUND at import time.
This commit is contained in:
parent
6021a04bde
commit
0c0d726b28
14
.github/workflows/qemu-emulator-build.yaml
vendored
14
.github/workflows/qemu-emulator-build.yaml
vendored
@ -138,8 +138,11 @@ jobs:
|
||||
- name: Build stack-cli (for emulator CLI)
|
||||
if: matrix.arch == 'amd64'
|
||||
run: |
|
||||
pnpm install --frozen-lockfile --filter @stackframe/stack-cli...
|
||||
pnpm --filter @stackframe/stack-cli run build
|
||||
pnpm install --frozen-lockfile --filter '@stackframe/stack-cli...'
|
||||
# Turbo's trailing `...` filter builds stack-cli AND its workspace
|
||||
# deps (@stackframe/js, @stackframe/stack-shared, etc.) — stack-cli
|
||||
# imports them at runtime from their dist/ outputs.
|
||||
pnpm exec turbo run build --filter='@stackframe/stack-cli...'
|
||||
|
||||
- name: Start emulator and verify
|
||||
if: matrix.arch == 'amd64'
|
||||
@ -249,8 +252,11 @@ jobs:
|
||||
|
||||
- name: Install stack-cli deps + build
|
||||
run: |
|
||||
pnpm install --frozen-lockfile --filter @stackframe/stack-cli...
|
||||
pnpm --filter @stackframe/stack-cli run build
|
||||
pnpm install --frozen-lockfile --filter '@stackframe/stack-cli...'
|
||||
# Turbo's trailing `...` filter builds stack-cli AND its workspace
|
||||
# deps (@stackframe/js, @stackframe/stack-shared, etc.) — stack-cli
|
||||
# imports them at runtime from their dist/ outputs.
|
||||
pnpm exec turbo run build --filter='@stackframe/stack-cli...'
|
||||
|
||||
- name: Download built image
|
||||
uses: actions/download-artifact@v4
|
||||
|
||||
Loading…
Reference in New Issue
Block a user