Skip to content

Commit 4771493

Browse files
committed
Update release_version.sh to read version from .env file instead of VERSION file
1 parent deb256b commit 4771493

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

new_release/release_version.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ if ! command_exists gh; then
1616
exit 1
1717
fi
1818

19-
# Read the version number from the file
20-
VERSION=$(cat ./new_release/VERSION)
19+
# Read the version number from the .env file
20+
VERSION=$(grep -oP '(?<=^VITE_APP_VERSION=).+' .env)
2121
if [ -z "$VERSION" ]; then
22-
echo "Error: VERSION file is empty."
22+
echo "Error: VITE_APP_VERSION is not set in .env file."
2323
exit 1
2424
fi
2525

0 commit comments

Comments
 (0)