diff --git a/docs/content/1.guide/guides/generating-static-reports.md b/docs/content/1.guide/guides/generating-static-reports.md index 2d0e6128..910d4350 100644 --- a/docs/content/1.guide/guides/generating-static-reports.md +++ b/docs/content/1.guide/guides/generating-static-reports.md @@ -227,3 +227,15 @@ This will generate a report like the following (`json` sample): } ] ``` + +## LHCI Reports + +You can upload your reports to a Lighthouse CI server using the `lighthouseServer` reporter. + +You will need to provide the `--lhci-host` and `--lhci-build-token` flags. + +```bash +unlighthouse-ci --site --reporter lighthouseServer --lhci-host --lhci-build-token +``` + +This will upload your reports to the Lighthouse CI server. diff --git a/package.json b/package.json index 04dd1061..b158aafb 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "scripts": { "cli": "JITI_ESM_RESOLVE=1 node packages/cli/dist/cli.mjs", "ci": "node packages/cli/dist/ci.mjs", + "ci:docs": "node packages/cli/dist/ci.mjs --site unlighthouse.dev --build-static --debug", "build": "pnpm run build:pkg", "build:docs": "cd docs && pnpm i && nuxi build", "build:pkg": "pnpm -r --filter=./packages/** run build",