only include experiments in dev and alpha releases

This commit is contained in:
Daniel Schmidt 2025-01-15 16:24:10 +01:00
parent c7dfcc4322
commit a5bfa39b9a
3 changed files with 8 additions and 1 deletions

3
.changes/footer.md Normal file
View file

@ -0,0 +1,3 @@
## Previous Releases
For information on prior major and minor releases, refer to their changelogs:

View file

@ -39,9 +39,12 @@ function generate {
exit 1
fi
FOOTER_FILE='footer.md'
case "$RELEASE_TYPE" in
dev)
FOOTER_FILE='footer-with-experiments.md'
LATEST_VERSION=$(npx -y changie@$CHANGIE_VERSION latest -r --skip-prereleases)
# Check if we already released this version already
@ -61,6 +64,7 @@ function generate {
;;
alpha)
FOOTER_FILE='footer-with-experiments.md'
PRERELEASE_VERSION=$(date +"alpha%Y%m%d")
LATEST_VERSION=$(npx -y changie@$CHANGIE_VERSION latest -r --skip-prereleases)
HUMAN_DATE=$(date +"%B %d, %Y") # Date in Janurary 1st, 2022 format
@ -119,7 +123,7 @@ function generate {
echo "$COMPLETE_VERSION" > version/VERSION
# Add footer to the changelog
cat ./.changes/experiments.md >> CHANGELOG.md
cat ./.changes/$FOOTER_FILE >> CHANGELOG.md
echo "" >> CHANGELOG.md
cat ./.changes/previous-releases.md >> CHANGELOG.md
}