From f97f12f69d2df609b81ef3fa775cef7180ef0050 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Thu, 1 Oct 2020 12:56:48 +0200 Subject: [PATCH] Drone: Don't use npx (#27955) Signed-off-by: Arve Knudsen --- scripts/circle-release-next-packages.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/circle-release-next-packages.sh b/scripts/circle-release-next-packages.sh index 713d6e4c787..b0e7fac64e4 100755 --- a/scripts/circle-release-next-packages.sh +++ b/scripts/circle-release-next-packages.sh @@ -12,8 +12,8 @@ function parse_git_hash() { function prepare_version_commit () { echo $'\nCommitting version changes. This commit will not be checked-in!' - git config --global user.email "circleci@grafana.com" - git config --global user.name "CirceCI" + git config --global user.email "drone@grafana.com" + git config --global user.name "Drone" git commit -am "Version commit" } @@ -40,7 +40,7 @@ function unpublish_previous_canary () { # Get current version from lerna.json PACKAGE_VERSION=$(grep '"version"' lerna.json | cut -d '"' -f 4) -# Get current commit's short hash +# Get current commit's short hash GIT_SHA=$(parse_git_hash) echo "Commit: ${GIT_SHA}" @@ -54,7 +54,7 @@ if [ -z "$count" ]; then else echo "Changes detected in ${count} packages" echo "Releasing packages under ${PACKAGE_VERSION}-${GIT_SHA}" - npx lerna version "${PACKAGE_VERSION}-${GIT_SHA}" --exact --no-git-tag-version --no-push --force-publish -y + ./node_modules/.bin/lerna version "${PACKAGE_VERSION}-${GIT_SHA}" --exact --no-git-tag-version --no-push --force-publish -y echo $'\nGit status:' git status -s