summaryrefslogtreecommitdiffstats
path: root/vendor/lsp-types/release.sh
blob: 68e4844557de914ec0f4582f7a220b41b3692e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -ex

LEVEL=$1
if [ -z "$LEVEL" ]; then
    echo "Expected patch, minor or major"
    exit 1
fi

clog --$LEVEL

git add CHANGELOG.md
git commit -m "Update changelog"

cargo release $LEVEL --execute