Skip to content

Commit

Permalink
fix(packageVersion): Allow user to set version
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHabenicht committed Mar 11, 2020
1 parent 87e9866 commit b9dd052
Show file tree
Hide file tree
Showing 9 changed files with 303 additions and 5,073 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"cross-env": "6.0.3",
"rimraf": "3.0.2",
"semantic-release": "15.14.0",
"tfx-cli": "0.7.11"
"tfx-cli": "0.7.11",
"typescript": "^3.8.3"
},
"release": {
"branch": "master",
Expand All @@ -37,4 +38,4 @@
"@semantic-release/github"
]
}
}
}
7 changes: 5 additions & 2 deletions src/freestyle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ async function run() {
const localFolder = path.join(__dirname);

const config = Utility.getConfig();

const taskPackageOverwrite = Utility.getTaskPackageOverwrite();
/**
* Installing needed NPM packages to run Semantic release
*/
tl.debug(`Executing NPM Command in: ${localFolder}`);
const npm = new tr.ToolRunner('npm');
npm.line(`install --only=prod ${Utility.getNpmPackagesFromConfig(config).join(' ')}`);
npm.line(`install --only=prod ${Utility.getNpmPackages(config, taskPackageOverwrite).join(' ')}`);
npm
.exec({
cwd: localFolder
Expand Down
Loading

0 comments on commit b9dd052

Please sign in to comment.