Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve release workflows by auto-detecting release date #365

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

rolandkakonyi
Copy link
Contributor

Description

These changes reduce the manual work for performing the release by auto-detecting the release date and updating the changelog.

Changes

Changed to remove the need for entering the desired release date when starting a release.
This is now auto-detected when the release actually happens.

Checklist

  • 🗒 CHANGELOG entry - CI change only, not applicable

@rolandkakonyi rolandkakonyi self-assigned this Dec 18, 2023
- name: Detect version number
id: version_number
run: |
version_number="$(jq --raw-output '.version' package.json)"
echo "Detected version number: $version_number"
echo "version_number=$version_number" >> $GITHUB_OUTPUT

- name: Update Changelog
run: |
sed -i "s/\[${{ steps.version_number.outputs.version_number }}\].*/\[${{ steps.version_number.outputs.version_number }}\] \($(date +'%Y-%m-%d')\)/g" CHANGELOG.md
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The date auto-generation happens here in $(date +'%Y-%m-%d')

@rolandkakonyi rolandkakonyi marked this pull request as ready for review December 18, 2023 14:54
Copy link
Contributor

@zigavehovec zigavehovec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good! Great improvements on the CI @rolandkakonyi 👍

@rolandkakonyi rolandkakonyi merged commit 8b498a5 into development Dec 19, 2023
9 checks passed
@rolandkakonyi rolandkakonyi deleted the feature/improve-finish-release-workflow branch December 19, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants