Commit b53d8a02 authored by Robert Knight's avatar Robert Knight

Add script to initiate a client release

Add a script to handle creating a new client release using yarn,
ensuring that the Git tag is signed. Unfortunately yarn's default is for
this setting to be turned off. Also unlike `npm version`, `yarn version`
does not support automatically incrementing the package version.
parent 6b5f06da
#!/bin/sh
set -eu
SEMVER=./node_modules/.bin/semver
CURRENT_VERSION=$(jq -r .version package.json)
NEW_VERSION=$($SEMVER -i minor "$CURRENT_VERSION")
yarn config set version-sign-git-tag true
yarn version --new-version $NEW_VERSION
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment