Reworked relase script.

This commit is contained in:
SamTV12345 2023-12-24 20:36:56 +01:00
parent 5f6c054168
commit 70adb4a1f6
2 changed files with 19 additions and 4 deletions

View file

@ -0,0 +1,16 @@
#!/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)

View file

@ -207,11 +207,10 @@ console.log(' git log --graph --date-order --boundary --oneline --decorate deve
console.log(` git show '${newVersion}'`); console.log(` git show '${newVersion}'`);
console.log(' (cd ../ether.github.com && git show)'); console.log(' (cd ../ether.github.com && git show)');
console.log('If everything looks good then push:'); console.log('If everything looks good then push:');
console.log(` git push origin master develop '${newVersion}'`); console.log('Run ./bin/push-after-release.sh');
console.log(' (cd ../ether.github.com && git push)');
console.log('Creating a Windows build is not necessary anymore and will be created by GitHub action'); console.log('Creating a Windows build is not necessary anymore and will be created by GitHub action');
console.log('Visit https://github.com/ether/etherpad-lite/releases/new and create a new release ' + console.log('After the windows binary is created a new release with the set version is created automatically.' +
`with 'master' as the target and the version is ${newVersion}. `); ' Just paste the release notes in there');
console.log('The docs are updated automatically with the new version. While the windows build' + console.log('The docs are updated automatically with the new version. While the windows build' +
' is generated people can still download the older versions.'); ' is generated people can still download the older versions.');
console.log('Finally go public with an announcement via our comms channels :)'); console.log('Finally go public with an announcement via our comms channels :)');