Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
fix(ci): Load version correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jftanner committed Dec 24, 2018
1 parent 441c0f7 commit c6cdad6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ pipeline {
sh 'npx semantic-release'
}
sh 'cat CHANGELOG.md'
sh 'node -p "require(\'./package.json\').version || \'unreleased\'" > env.RELEASED_VERSION'
sh "echo Version: ${RELEASED_VERSION}"
script {
RELEASED_VERSION = sh (
script: "node -p \"require('./package.json').version || 'unreleased'\"",
returnStdout: true
)
echo "Version: ${RELEASED_VERSION}"
}
}
}

Expand Down

0 comments on commit c6cdad6

Please sign in to comment.