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

ci-env

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ci-env - npm Package Compare versions

Comparing version 1.10.0 to 1.11.0

16

index.js

@@ -84,2 +84,18 @@ let drone = require('./utils/drone')

ci = 'github_actions'
} else if (process.env.NETLIFY) {
// Reference: https://www.netlify.com/docs/continuous-deployment/#environment-variables
repo = process.env.REPOSITORY_URL.split('@github.com/').pop()
event = process.env.PULL_REQUEST?'pull_request':'push'
pull_request_number = process.env.PULL_REQUEST?process.env.REVIEW_ID:''
sha = process.env.COMMIT_REF
branch = process.env.HEAD
ci = 'netlify'
} else if (process.env.NOW_GITHUB_ORG) {
// Reference: https://zeit.co/docs/v2/advanced/now-for-github/
repo = process.env.NOW_GITHUB_ORG + '/' + process.env.NOW_GITHUB_REPO
event = 'push'
pull_request_number = ''
sha = process.env.NOW_GITHUB_COMMIT_SHA
branch = process.env.NOW_GITHUB_COMMIT_REF
ci = 'now'
} else if (process.env.CI) {

@@ -86,0 +102,0 @@ // Generic variables for docker images, custom CI builds, etc.

2

package.json
{
"name": "ci-env",
"version": "1.10.0",
"version": "1.11.0",
"description": "Environment variables exposed by CI tools",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,7 +0,6 @@

[![Build Status](http://drone-community.eastus.cloudapp.azure.com/api/badge/github.com/siddharthkp/ci-env/status.svg?branch=master)](http://drone-community.eastus.cloudapp.azure.com/github.com/siddharthkp/ci-env)
<p align="center">
<br>
<b>Environment variables exposed by CI tools</b>
<br>
<br><br>
<img src="https://travis-ci.org/siddharthkp/ci-env.svg?branch=master&maxAge=3600"/>
</p>

@@ -11,3 +10,3 @@

Supports travis, circle, wercker, drone, codeship and GitHub Actions.
Supports travis, circle, wercker, drone, codeship, now(zeit), netlify and GitHub Actions.

@@ -14,0 +13,0 @@ Kinda supports custom CI as well. [Specs here](https://github.com/siddharthkp/ci-env/blob/master/index.js#L68-L79)

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