2023-01-05 22:31:10 +08:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
VERSION=$1
|
2024-08-07 02:11:38 +08:00
|
|
|
|
|
|
|
# Patch version is version.ts and deno.json
|
2023-07-07 19:09:44 +08:00
|
|
|
echo "export const version = \"$VERSION\";" > version.ts
|
2024-08-07 02:11:38 +08:00
|
|
|
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
|