From 84781532a21c3f0e88a637a820f0b88d29a008a5 Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Thu, 5 Nov 2020 18:03:28 +0200 Subject: [PATCH] chore: install standard-version before running bump (#11312) This [PR](https://github.com/aws/aws-cdk/pull/11307) migrated our CLI usage of `standard-version` to be used in code as a library. But the library is not installed anywhere. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- bump.sh | 5 ++++- scripts/bump-candidate.sh | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bump.sh b/bump.sh index 750d452da496d..746353925c60d 100755 --- a/bump.sh +++ b/bump.sh @@ -13,4 +13,7 @@ # # -------------------------------------------------------------------------------------------------- set -euo pipefail -./scripts/bump.js ${1:-minor} +scriptdir=$(cd $(dirname $0) && pwd) +cd ${scriptdir} +yarn +${scriptdir}/scripts/bump.js ${1:-minor} diff --git a/scripts/bump-candidate.sh b/scripts/bump-candidate.sh index ee509daa78d16..abdbbe8a3f3a3 100755 --- a/scripts/bump-candidate.sh +++ b/scripts/bump-candidate.sh @@ -17,4 +17,5 @@ # -------------------------------------------------------------------------------------------------- set -euo pipefail scriptdir=$(cd $(dirname $0) && pwd) -BUMP_CANDIDATE=true ${scriptdir}/bump.js ${1:-minor} +rootdir=${scriptdir}/.. +BUMP_CANDIDATE=true ${rootdir}/bump.sh ${1:-minor}