Compare commits
1 Commits
fix/remove
...
chore/conf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62111c7647 |
41
.github/workflows/promote-to-stable.yml
vendored
41
.github/workflows/promote-to-stable.yml
vendored
@@ -37,6 +37,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git config --global url."https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/".insteadOf "https://github.com/"
|
||||||
|
|
||||||
|
- name: Switch to stable branch
|
||||||
|
run: |
|
||||||
|
git checkout stable
|
||||||
|
git pull origin stable
|
||||||
|
|
||||||
|
- name: Merge main into stable
|
||||||
|
run: |
|
||||||
|
git merge origin/main --no-edit
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
@@ -111,33 +121,24 @@ 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 }}
|
||||||
|
|
||||||
- name: Create and push stable tag
|
BREAKING CHANGE: Promote beta features to stable release
|
||||||
run: |
|
|
||||||
git tag -a "v${{ steps.version.outputs.new_version }}" -m "Stable release v${{ steps.version.outputs.new_version }}"
|
|
||||||
git push origin "v${{ steps.version.outputs.new_version }}"
|
|
||||||
|
|
||||||
- name: Push changes to main
|
- Update version from ${{ steps.version.outputs.current_version }} to ${{ steps.version.outputs.new_version }}
|
||||||
run: |
|
- Automated promotion via GitHub Actions"
|
||||||
git push origin HEAD:main
|
|
||||||
|
|
||||||
- name: Publish to NPM with stable tag
|
- name: Push stable release
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
# Publish with the stable (latest) tag
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
||||||
npm publish --tag latest
|
git push origin stable
|
||||||
|
|
||||||
# Also tag the previous beta version as stable if it exists
|
- name: Switch back to main
|
||||||
if npm view bmad-method@${{ steps.version.outputs.current_version }} version >/dev/null 2>&1; then
|
run: git checkout main
|
||||||
npm dist-tag add bmad-method@${{ steps.version.outputs.new_version }} stable || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Summary
|
- name: Summary
|
||||||
run: |
|
run: |
|
||||||
echo "🎉 Successfully promoted to stable!"
|
echo "🎉 Successfully promoted to stable!"
|
||||||
echo "📦 Version: ${{ steps.version.outputs.new_version }}"
|
echo "📦 Version: ${{ steps.version.outputs.new_version }}"
|
||||||
echo "🏷️ Git tag: v${{ steps.version.outputs.new_version }}"
|
echo "🚀 The stable release will be automatically published to NPM via semantic-release"
|
||||||
echo "✅ Published to NPM with 'latest' tag"
|
|
||||||
echo "✅ Users running 'npx bmad-method install' will now get version ${{ steps.version.outputs.new_version }}"
|
echo "✅ Users running 'npx bmad-method install' will now get version ${{ steps.version.outputs.new_version }}"
|
||||||
1
.github/workflows/release.yaml
vendored
1
.github/workflows/release.yaml
vendored
@@ -3,6 +3,7 @@ name: Release
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- stable
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version_type:
|
version_type:
|
||||||
|
|||||||
@@ -4,6 +4,10 @@
|
|||||||
"name": "main",
|
"name": "main",
|
||||||
"prerelease": "beta",
|
"prerelease": "beta",
|
||||||
"channel": "beta"
|
"channel": "beta"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "stable",
|
||||||
|
"channel": "latest"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
|||||||
Reference in New Issue
Block a user