Comparing version 4.5.2 to 5.0.0
@@ -21,3 +21,3 @@ const execa = require('execa'); | ||
.find(branch => branch.startsWith('origin/')); | ||
return branch ? branch.match(/^origin\/(.+)/)[1] : undefined; | ||
return branch ? branch.match(/^origin\/(?<branch>.+)/)[1] : undefined; | ||
} | ||
@@ -24,0 +24,0 @@ |
{ | ||
"name": "env-ci", | ||
"description": "Get environment variables exposed by CI services", | ||
"version": "4.5.2", | ||
"version": "5.0.0", | ||
"author": "Pierre Vanduynslager (https://github.com/pvdlg)", | ||
@@ -25,5 +25,5 @@ "ava": { | ||
"file-url": "^3.0.0", | ||
"nyc": "^14.0.0", | ||
"nyc": "^15.0.0", | ||
"proxyquire": "^2.1.0", | ||
"semantic-release": "^15.0.0", | ||
"semantic-release": "^16.0.0", | ||
"tempy": "^0.3.0", | ||
@@ -33,3 +33,3 @@ "xo": "^0.25.0" | ||
"engines": { | ||
"node": ">=8.3" | ||
"node": ">=10.13" | ||
}, | ||
@@ -36,0 +36,0 @@ "files": [ |
// https://help.github.com/en/articles/virtual-environments-for-github-actions#environment-variables | ||
const parseBranch = branch => (/^(?:refs\/heads\/)?(.+)$/i.exec(branch) || [])[1]; | ||
const parseBranch = branch => (/^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(branch) || [])[1]; | ||
@@ -5,0 +5,0 @@ const getPrEvent = ({env}) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41442