forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bump-candidate.sh
executable file
·21 lines (21 loc) · 1.13 KB
/
bump-candidate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# --------------------------------------------------------------------------------------------------
#
# This script is intended to be used in our main pipeline as a way of incrementing the version number
# so that it doesn't collide with any published version. This is needed because our integration tests launch
# a verdaccio instance that serves local tarballs, and if those tarballs have the same version as
# already published modules, it messes things up.
#
# It does so by using a pre-release "rc" tag, making it so that locally packed versions will always be
# suffixed with '-rc', distinguishing it from published modules.
#
# If you need to run integration tests locally against the distribution tarballs, you should run this
# script locally as well before building and packing the repository.
#
# This script only increments the version number in the version files, it does not generate a changelog.
#
# --------------------------------------------------------------------------------------------------
set -euo pipefail
scriptdir=$(cd $(dirname $0) && pwd)
rootdir=${scriptdir}/..
BUMP_CANDIDATE=true ${rootdir}/bump.sh ${1:-minor}