Skip to content

Commit

Permalink
Merge pull request #19 from ga4gh/fix-branch-envvar
Browse files Browse the repository at this point in the history
Fix branch envvar; fixes #18
  • Loading branch information
jaeddy authored May 10, 2020
2 parents 849b034 + f09e78c commit d3b977f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build:swagger": "node src/swagger-ui.js",
"build:redoc": "node src/redoc-ui.js",
"clean": "rm -rf dist/* bin/*",
"build": "npx webpack --mode=development",
"build": "npx webpack-cli --mode=development",
"cleanBuild": "npm run clean && npm run build"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions src/lib/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import getRepoInfo from 'git-repo-info';
/*eslint no-process-env:0*/

var repoInfo = getRepoInfo();
repoInfo.branch = repoInfo.branch || process.env.TRAVIS_BRANCH;
console.log(repoInfo);

const env = process.env.NODE_ENV;
const repoOrigin = origin.sync();
Expand Down

0 comments on commit d3b977f

Please sign in to comment.