New:Socket for Asana Is Now Available.Learn more
Sign In

@percy/env

Package Overview
Dependencies
Maintainers
1
Versions
387
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@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`.

Source
npmnpm
Version
1.31.11
Version published
Weekly downloads
485K
18.3%
Maintainers
1
Weekly downloads
 
Created
Source

@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

  • AppVeyor
  • Azure Pipelines
  • Bitbucket Pipelines
  • Buildkite
  • CircleCI
  • Codeship
  • Drone CI
  • GitHub Actions
  • GitLab CI
  • Heroku CI (needs doc)
  • Jenkins
  • Jenkins PRB
  • Netlify
  • Probo.CI (needs doc)
  • Semaphore
  • Travis CI

Percy Environment Variables

The following variables may be defined to override the respective derived CI environment variables.

PERCY_COMMIT          # build commit sha
PERCY_BRANCH          # build branch name
PERCY_PULL_REQUEST    # associated PR number
PERCY_PARALLEL_NONCE  # parallel nonce unique for this CI workflow
PERCY_PARALLEL_TOTAL  # total number of parallel shards

Additional Percy specific environment variable may be set to control aspects of your Percy build.

PERCY_TARGET_COMMIT   # percy target commit sha
PERCY_TARGET_BRANCH   # percy target branch name
PERCY_PARTIAL_BUILD   # if this build was marked as partial

Adding Environment Support

  • Add CI detection to environment.js
  • Add respective environment variables
  • Add a dedicated CI test suite
  • Open a Pull Request!

FAQs

Package last updated on 01 Apr 2026

Related posts