chore: use env to override branch instead of cli arg (#28057)

This commit is contained in:
Adam Stone-Lord
2023-10-16 13:57:16 -04:00
committed by GitHub
parent 5a7eee573e
commit bffc2f3f17

View File

@@ -1,8 +1,6 @@
const _ = require('lodash')
const path = require('path')
const shell = require('shelljs')
const minimist = require('minimist')
const fs = require('../lib/fs')
// grab the current version and a few other properties
@@ -72,9 +70,7 @@ function makeUserPackageFile (branchName) {
module.exports = makeUserPackageFile
if (!module.parent) {
const args = minimist(process.argv)
makeUserPackageFile(args.branch)
makeUserPackageFile(process.env.BRANCH)
.catch((err) => {
/* eslint-disable no-console */
console.error('Could not write user package file')