[node] simpler PACKAGE_JSON_VERSION
This commit is contained in:
@@ -11,7 +11,7 @@ else
|
||||
fi
|
||||
|
||||
COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
|
||||
PACKAGE_JSON_VERSION=$(node ./scripts/node/package-version.js)
|
||||
PACKAGE_JSON_VERSION=$(node -e "console.log(require('./package.json').version)")
|
||||
|
||||
if [[ ${TRAVIS_TAG} == node-v${PACKAGE_JSON_VERSION} ]] || test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE"; then
|
||||
source ~/.nvm/nvm.sh
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
var readJSON = require('read-package-json');
|
||||
|
||||
readJSON('package.json', function(err, data) {
|
||||
if (err) process.stderr.write(err);
|
||||
process.stdout.write(data.version);
|
||||
});
|
||||
Reference in New Issue
Block a user