@percy/env
This package provides various CI/CD support for Percy by coalescing different environment variables
into a common interface for consumption by @percy/client
.
Supported Environments
Percy Environment Variables
The following variables may be defined to override the respective derived CI environment variables.
PERCY_COMMIT
PERCY_BRANCH
PERCY_PULL_REQUEST
PERCY_PARALLEL_NONCE
PERCY_PARALLEL_TOTAL
Additional Percy specific environment variable may be set to control aspects of your Percy build.
PERCY_TARGET_COMMIT
PERCY_TARGET_BRANCH
PERCY_PARTIAL_BUILD
Adding Environment Support
- Add CI detection to
environment.js
- Add respective environment variables
- Add a dedicated CI test suite
- Open a Pull Request!