Build the GitFit frontend from published @lax/* packages into a deployable directory. Consumed by repos that deploy the GitFit UI (e.g. Lax/workouts gh-pages).
- uses: git-fit-actions/frontend-build@v1
with:
config: config.json # site config (required by git-fit-web)
out-dir: site # built UI output dir (default: site)| Input | Description | Default |
|---|---|---|
config |
Path to the site config.json (relative to working-directory) |
config.json |
out-dir |
Output directory for the built site (relative to working-directory) |
site |
working-directory |
Consumer project directory containing package.json (relative to repo root) |
. |
npm-auth-token |
PAT with read:packages for @lax GitHub Packages. Falls back to GITHUB_TOKEN (same account only) |
'' |
stats |
Path to stats.json for build-time embedding (Phase 2, reserved) |
'' |
actions/setup-node@v7(node 26, npm cache,@laxGitHub Packages registry)npm ci(inworking-directory)npx git-fit-web build --config <config> --out <out-dir>
- Consumer repo has a
package.jsondepending on@lax/web-build(and the theme(s) referenced byconfig.json), plus a committedpackage-lock.json. - To install private
@lax/*packages from a different GitHub account than the publisher, passnpm-auth-token(PAT withread:packages). Within the same account,GITHUB_TOKEN+packages: readsuffices.
Tag v1 on mainline after changes.