mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
16 lines
438 B
Bash
16 lines
438 B
Bash
![]() |
#!/bin/bash
|
||
|
|
||
|
# Specify the path to your package.json file
|
||
|
PACKAGE_JSON_PATH="./src//package.json"
|
||
|
|
||
|
# Check if the file exists
|
||
|
if [ ! -f "$PACKAGE_JSON_PATH" ]; then
|
||
|
echo "Error: package.json not found in the specified path."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
# Read the version from package.json into a variable
|
||
|
VERSION=$(jq -r '.version' "$PACKAGE_JSON_PATH")
|
||
|
git push origin master develop $VERSION
|
||
|
git push --tags
|
||
|
(cd ../ether.github.com && git push)
|