chore(dependencies): update forgeui dependency and enhance README doc… #58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Please | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Enable auto-merge on release PR | |
| if: ${{ steps.release.outputs.pr }} | |
| run: | | |
| echo "Release PR created: #${{ steps.release.outputs.pr }}" | |
| echo "Enabling auto-merge..." | |
| gh pr merge ${{ steps.release.outputs.pr }} --auto --squash --delete-branch || true | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Log release information | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| echo "✅ Release created!" | |
| echo "Tag: ${{ steps.release.outputs.tag_name }}" | |
| echo "Version: ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}" | |
| echo "SHA: ${{ steps.release.outputs.sha }}" | |
| echo "" | |
| echo "The CLI release workflow will be triggered by the tag." | |
| - name: Generate workflow summary | |
| if: always() | |
| run: | | |
| cat >> $GITHUB_STEP_SUMMARY << 'EOF' | |
| # 🤖 Release Please Automation | |
| EOF | |
| PR_NUMBER="${{ steps.release.outputs.pr }}" | |
| RELEASE_CREATED="${{ steps.release.outputs.release_created }}" | |
| TAG_NAME="${{ steps.release.outputs.tag_name }}" | |
| if [ -n "$PR_NUMBER" ] && [ "$PR_NUMBER" != "null" ]; then | |
| cat >> $GITHUB_STEP_SUMMARY << EOF | |
| ## 📝 Release PR Created/Updated | |
| - **PR**: #${PR_NUMBER} | |
| - **Auto-merge**: Enabled (will merge when checks pass) | |
| Review the PR to verify version bump and changelog before it merges. | |
| EOF | |
| elif [ "$RELEASE_CREATED" = "true" ]; then | |
| cat >> $GITHUB_STEP_SUMMARY << EOF | |
| ## 🎉 Release Created | |
| - **Tag**: ${TAG_NAME} | |
| - **Version**: ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} | |
| - **SHA**: ${{ steps.release.outputs.sha }} | |
| The [CLI Release workflow](../actions/workflows/cli-release.yml) will build and publish: | |
| - Multi-platform binaries | |
| - Docker images | |
| - Package manager updates | |
| EOF | |
| else | |
| cat >> $GITHUB_STEP_SUMMARY << EOF | |
| ## ℹ️ No Release Needed | |
| No releasable commits found since last release. | |
| Commits with types \`feat\`, \`fix\`, or \`BREAKING CHANGE\` trigger releases. | |
| EOF | |
| fi | |