Skip to content

Commit

Permalink
chore: use env to override branch instead of cli arg (#28057)
Browse files Browse the repository at this point in the history
  • Loading branch information
astone123 committed Oct 19, 2023
1 parent 0b35e8e commit 0b4c3cc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cli/scripts/build.js
@@ -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
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 0b4c3cc

Please sign in to comment.