silverbullet/scripts/release.sh

11 lines
268 B
Bash
Raw Normal View History

2023-01-05 22:31:10 +08:00
#!/bin/bash -e
VERSION=$1
# Patch version is version.ts and deno.json
2023-07-07 19:09:44 +08:00
echo "export const version = \"$VERSION\";" > version.ts
sed -i '' "s/\(\"version\": \"\)[^\"]*\(\"\)/\1$VERSION\2/" deno.json
2023-01-05 22:31:10 +08:00
git commit -am $VERSION
git tag $VERSION
git push && git push --tags