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

Add commit messages to release commits #71

Merged
merged 5 commits into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ jobs:
if [[ current_version == *${PREID}* ]]; then
echo "first prerelease version"
# if the current version is a prerelease, we can just bump the prerelease number
new_version=$(npm version prerelease --sign-git-tag)
new_version=$(npm version prerelease --sign-git-tag -m "Create prererelease version %s" )
else
echo "subsequent prerelease version"
# if the current version is not a prerelease, we need to add a prerelease number
new_version=$(npm version --preid=${PREID} pre${{ inputs.semver_type }} --sign-git-tag)
new_version=$(npm version --preid=${PREID} pre${{ inputs.semver_type }} --sign-git-tag -m "Create prererelease version %s" )
fi
else
echo "creating new release"
new_version=$(npm version ${{ inputs.semver_type }} --sign-git-tag )
new_version=$(npm version ${{ inputs.semver_type }} --sign-git-tag -m "Release version %s" )
fi
echo "Created version ${new_version}"
git push && git push --tags
Expand Down