Sha256: 62271da7d01c98f2561d246e79f15abcea014fa4b2a42bfb6e44625b95a5dc29

Contents?: true

Size: 745 Bytes

Versions: 2

Compression:

Stored size: 745 Bytes

Contents

#!/usr/bin/env bash

if [ -z "$GIT_TAG" ]; then
  echo "GIT_TAG is not set, pulling from changeset"
  GIT_TAG=$(jq -r '.version' src/packages/locusts/package.json)
fi

OLD_TAG=$(jq -r '.version' package.json)
echo "Bumping version from $OLD_TAG to $GIT_TAG"

rg "$OLD_TAG" --files-with-matches --iglob \!\*lock\* --iglob \!go.mod --iglob \!deno.json --iglob \!package.json --iglob \!\*.md "$(pwd)" | xargs sed -i "s/$OLD_TAG/$GIT_TAG/g"

# fiddle with autotools
AUTOTOOLS_TAG=${GIT_TAG//\./:}
OLD_TAG=${OLD_TAG//\./:}

sed -i "s/$GIT_TAG/$AUTOTOOLS_TAG/g" GNUmakefile.am

# remove the snapshot from gradle
sed -i "s/-SNAPSHOT//g" gradle.properties

# bump the main package.json too
jq ".version = \"$GIT_TAG\"" package.json | sponge package.json

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locusts-0.0.1 contrib/version-bump
locusts-0.0.0 contrib/version-bump