Skip to content
lighthouse
Menu

GitHub

GitHub Actions

The docs and the onboarding skill wire a GitHub Actions step that runs npx @lhci/cli autorun.

Store LHCI_BUILD_TOKEN, LHCI_BASIC_AUTH_USERNAME and LHCI_BASIC_AUTH_PASSWORD as repo or org secrets, and pass them to the step that runs npx @lhci/cli autorun.

Set GITHUB_TOKEN on that step and Lighthouse CI posts its score and comparison link on the pull request. Any CI that can run Node and set environment variables can upload the same way.