Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@percy/env

Package Overview
Dependencies
Maintainers
1
Versions
253
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`.

  • 1.30.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
312K
decreased by-13.03%
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

  1. Add CI detection to environment.js
  2. Add respective environment variables
  3. Add a dedicated CI test suite
  4. Open a Pull Request!

FAQs

Package last updated on 02 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc