fix impatient not found on bootstrap
This commit is contained in:
committed by
Sidhanth Rathod
parent
33c304f627
commit
074b656cbd
33
tree-sitter-lua/script/release.sh
Executable file
33
tree-sitter-lua/script/release.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
echo "Running Build..."
|
||||
npm run build
|
||||
echo
|
||||
|
||||
echo "Running Tests..."
|
||||
npm run test
|
||||
echo
|
||||
|
||||
echo "Bumping Version..."
|
||||
declare -r curr_version=$(npx -c 'echo $npm_package_version')
|
||||
npm version --allow-same-version --no-git-tag-version $@
|
||||
declare -r next_version=$(npx -c 'echo $npm_package_version')
|
||||
echo
|
||||
|
||||
if [[ "${curr_version}" = "${next_version}" ]]; then
|
||||
echo "Version did not change!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git add package.json
|
||||
|
||||
echo "crate: tree-sitter-lua"
|
||||
echo "v${next_version}"
|
||||
cargo bump "${next_version}"
|
||||
git add "Cargo.toml"
|
||||
echo
|
||||
|
||||
git commit -m "chore: release v${next_version}"
|
||||
git tag "v${next_version}" -m "v${next_version}"
|
||||
Reference in New Issue
Block a user