feat: publish stable release 5.0.0
BREAKING CHANGE: Promote beta features to stable release for v5.0.0 This commit ensures the stable release gets properly published to NPM and GitHub releases.
This commit is contained in:
26
.github/workflows/promote-to-stable.yml
vendored
26
.github/workflows/promote-to-stable.yml
vendored
@@ -83,6 +83,27 @@ jobs:
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Check if calculated version already exists on NPM and increment if necessary
|
||||||
|
while npm view bmad-method@$NEW_VERSION version >/dev/null 2>&1; do
|
||||||
|
echo "Version $NEW_VERSION already exists, incrementing..."
|
||||||
|
IFS='.' read -ra NEW_VERSION_PARTS <<< "$NEW_VERSION"
|
||||||
|
NEW_MAJOR=${NEW_VERSION_PARTS[0]}
|
||||||
|
NEW_MINOR=${NEW_VERSION_PARTS[1]}
|
||||||
|
NEW_PATCH=${NEW_VERSION_PARTS[2]}
|
||||||
|
|
||||||
|
case "${{ github.event.inputs.version_bump }}" in
|
||||||
|
"major")
|
||||||
|
NEW_VERSION="$((NEW_MAJOR + 1)).0.0"
|
||||||
|
;;
|
||||||
|
"minor")
|
||||||
|
NEW_VERSION="$NEW_MAJOR.$((NEW_MINOR + 1)).0"
|
||||||
|
;;
|
||||||
|
"patch")
|
||||||
|
NEW_VERSION="$NEW_MAJOR.$NEW_MINOR.$((NEW_PATCH + 1))"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "Promoting from $CURRENT_VERSION to $NEW_VERSION"
|
echo "Promoting from $CURRENT_VERSION to $NEW_VERSION"
|
||||||
|
|
||||||
@@ -100,9 +121,10 @@ jobs:
|
|||||||
- name: Commit stable release
|
- name: Commit stable release
|
||||||
run: |
|
run: |
|
||||||
git add .
|
git add .
|
||||||
git commit -m "release: promote to stable ${{ steps.version.outputs.new_version }}
|
git commit -m "feat: promote to stable ${{ steps.version.outputs.new_version }}
|
||||||
|
|
||||||
|
BREAKING CHANGE: Promote beta features to stable release
|
||||||
|
|
||||||
- Promote beta features to stable release
|
|
||||||
- Update version from ${{ steps.version.outputs.current_version }} to ${{ steps.version.outputs.new_version }}
|
- Update version from ${{ steps.version.outputs.current_version }} to ${{ steps.version.outputs.new_version }}
|
||||||
- Automated promotion via GitHub Actions"
|
- Automated promotion via GitHub Actions"
|
||||||
|
|
||||||
|
|||||||
@@ -686,3 +686,4 @@ Co-Authored-By: Claude <noreply@anthropic.com>
|
|||||||
### Features
|
### Features
|
||||||
|
|
||||||
- add versioning and release automation ([0ea5e50](https://github.com/bmadcode/BMAD-METHOD/commit/0ea5e50aa7ace5946d0100c180dd4c0da3e2fd8c))
|
- add versioning and release automation ([0ea5e50](https://github.com/bmadcode/BMAD-METHOD/commit/0ea5e50aa7ace5946d0100c180dd4c0da3e2fd8c))
|
||||||
|
# Promote to stable release 5.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user