Skip to content

Commit

Permalink
save exact version of the npm packages specified in the dependencies
Browse files Browse the repository at this point in the history
version 1.3.4

Signed-off-by: zFernand0 <fernando.rijocedeno@broadcom.com>
  • Loading branch information
zFernand0 committed Aug 1, 2019
1 parent 54f35f5 commit 3fb736d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/zowe/pipelines/nodejs/NodeJSPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,8 @@ class NodeJSPipeline extends GenericPipeline {
if (protectedBranches.isProtected(branch)) {
def branchProps = protectedBranches.get(branch)

branchProps.dependencies.each { npmPackage, version -> steps.sh "npm install --save $npmPackage@$version" }
branchProps.devDependencies.each { npmPackage, version -> steps.sh "npm install --save-dev $npmPackage@$version" }
branchProps.dependencies.each { npmPackage, version -> steps.sh "npm install --save --save-exact $npmPackage@$version" }
branchProps.devDependencies.each { npmPackage, version -> steps.sh "npm install --save-dev --save-exact $npmPackage@$version" }

// Commits will be avoided on PRs
if (!changeInfo.isPullRequest) {
Expand Down

0 comments on commit 3fb736d

Please sign in to comment.