Compare commits
No commits in common. "bcf6049299d46be06a0dee5be6bdca6d1613d14d" and "b19536590620013f4054ea8cf29314fdbbb7fde6" have entirely different histories.
bcf6049299
...
b195365906
|
|
@ -6,11 +6,9 @@ on:
|
||||||
version_bump:
|
version_bump:
|
||||||
description: Version bump type
|
description: Version bump type
|
||||||
required: true
|
required: true
|
||||||
default: alpha
|
default: patch
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- alpha
|
|
||||||
- beta
|
|
||||||
- patch
|
- patch
|
||||||
- minor
|
- minor
|
||||||
- major
|
- major
|
||||||
|
|
@ -51,11 +49,7 @@ jobs:
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
- name: Bump version
|
- name: Bump version
|
||||||
run: |
|
run: npm run version:${{ github.event.inputs.version_bump }}
|
||||||
case "${{ github.event.inputs.version_bump }}" in
|
|
||||||
alpha|beta) npm version prerelease --no-git-tag-version --preid=${{ github.event.inputs.version_bump }} ;;
|
|
||||||
*) npm version ${{ github.event.inputs.version_bump }} --no-git-tag-version ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
- name: Get new version and previous tag
|
- name: Get new version and previous tag
|
||||||
id: version
|
id: version
|
||||||
|
|
@ -67,9 +61,34 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sed -i 's/"version": ".*"/"version": "${{ steps.version.outputs.new_version }}"/' tools/installer/package.json
|
sed -i 's/"version": ".*"/"version": "${{ steps.version.outputs.new_version }}"/' tools/installer/package.json
|
||||||
|
|
||||||
# TODO: Re-enable web bundles once tools/cli/bundlers/ is restored
|
- name: Generate web bundles
|
||||||
# - name: Generate web bundles
|
run: npm run bundle
|
||||||
# run: npm run bundle
|
|
||||||
|
- name: Package bundles for release
|
||||||
|
run: |
|
||||||
|
mkdir -p dist/release-bundles
|
||||||
|
|
||||||
|
# Copy web bundles
|
||||||
|
cp -r web-bundles dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }}
|
||||||
|
|
||||||
|
# Verify bundles exist
|
||||||
|
if [ ! "$(ls -A dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }})" ]; then
|
||||||
|
echo "❌ ERROR: No bundles found"
|
||||||
|
echo "This likely means 'npm run bundle' failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Count and display bundles per module
|
||||||
|
for module in bmm bmb cis bmgd; do
|
||||||
|
if [ -d "dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }}/$module/agents" ]; then
|
||||||
|
COUNT=$(find dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }}/$module/agents -name '*.xml' 2>/dev/null | wc -l)
|
||||||
|
echo "✅ $module: $COUNT agents"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Create archive
|
||||||
|
tar -czf dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }}.tar.gz \
|
||||||
|
-C dist/release-bundles/bmad-bundles-v${{ steps.version.outputs.new_version }} .
|
||||||
|
|
||||||
- name: Commit version bump
|
- name: Commit version bump
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -166,15 +185,25 @@ jobs:
|
||||||
npm publish --tag latest
|
npm publish --tag latest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release with Bundles
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ steps.version.outputs.new_version }}
|
tag_name: v${{ steps.version.outputs.new_version }}
|
||||||
name: "BMad Method v${{ steps.version.outputs.new_version }}"
|
name: "BMad Method v${{ steps.version.outputs.new_version }}"
|
||||||
body: |
|
body: |
|
||||||
${{ steps.release_notes.outputs.RELEASE_NOTES }}
|
${{ steps.release_notes.outputs.RELEASE_NOTES }}
|
||||||
|
|
||||||
|
## 📦 Web Bundles
|
||||||
|
|
||||||
|
Download XML bundles for use in AI platforms (Claude Projects, ChatGPT, Gemini):
|
||||||
|
|
||||||
|
- `bmad-bundles-v${{ steps.version.outputs.new_version }}.tar.gz` - All modules (BMM, BMB, CIS, BMGD)
|
||||||
|
|
||||||
|
**Browse online** (bleeding edge): https://bmad-code-org.github.io/bmad-bundles/
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: ${{ contains(steps.version.outputs.new_version, 'alpha') || contains(steps.version.outputs.new_version, 'beta') }}
|
prerelease: ${{ contains(steps.version.outputs.new_version, 'alpha') || contains(steps.version.outputs.new_version, 'beta') }}
|
||||||
|
files: |
|
||||||
|
dist/release-bundles/*.tar.gz
|
||||||
|
|
||||||
- name: Summary
|
- name: Summary
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -183,6 +212,7 @@ jobs:
|
||||||
echo "### 📦 Distribution" >> $GITHUB_STEP_SUMMARY
|
echo "### 📦 Distribution" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "- **NPM**: Published with @latest tag" >> $GITHUB_STEP_SUMMARY
|
echo "- **NPM**: Published with @latest tag" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "- **GitHub Release**: https://github.com/bmad-code-org/BMAD-METHOD/releases/tag/v${{ steps.version.outputs.new_version }}" >> $GITHUB_STEP_SUMMARY
|
echo "- **GitHub Release**: https://github.com/bmad-code-org/BMAD-METHOD/releases/tag/v${{ steps.version.outputs.new_version }}" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "- **Web Bundles**: Attached to GitHub Release (4 archives)" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "" >> $GITHUB_STEP_SUMMARY
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "### ✅ Installation" >> $GITHUB_STEP_SUMMARY
|
echo "### ✅ Installation" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
|
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue