Skip to content

ensure that script commands in package. json are only allowed to execute on specified git branches

Notifications You must be signed in to change notification settings

silentport/branch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-git-branch

Build Status undefined

Ensure that script commands in package. JSON are only allowed to execute on specified git branches

usage

Maybe you should cooperate with cross-env

npm i check-git-branch -D
npm i cross-env -D

package.json in your project

"scripts": {
   "build": "branch master && cross-env NODE_ENV=production node build/build.js",
   "build-test": "branch dev && cross-env NODE_ENV=sandbox node build/build.js"
},

About

ensure that script commands in package. json are only allowed to execute on specified git branches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published