build.prebuild and a Capacitor web-asset staleness guard for apple build / play build
apple build and play build run build.prebuild (or apple.prebuild / play.prebuild) first, once per flow run; --no-prebuild skips it, --dry only prints it. A Capacitor project's copied public/index.html must then be newer than the last source commit and <webDir>/index.html, else the build stops (--allow-stale-web overrides). check warns when stale without a prebuild; the build output and dry plan show the web bundle's sha256 and mtime. The Capacitor project is also found in a monorepo (apps/native etc.); several ask for play.build.dir / apple.build.*. Pitfall 23.
This commit is contained in:
parent
f694af80eb
commit
5fbb9e63e3
14 changed files with 600 additions and 25 deletions
|
|
@ -36,6 +36,9 @@ after: []
|
|||
onError: []
|
||||
```
|
||||
`continueOnError: true` lets a step fail without stopping the flow.
|
||||
A web build before the native builds (Capacitor: `npm run build && npx cap sync`) belongs in `build.prebuild` in the
|
||||
config rather than an `sh:` step: `apple build` and `play build` run it themselves, and within one `flow run` it runs
|
||||
once (the second build step prints "prebuild skipped (already ran in this flow run)").
|
||||
|
||||
## Modes
|
||||
- `flow run release VERSION=1.2.0` (default): read steps (check, validate, scan, release plan, next-build, status ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue