An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.
JavaScript aicursorcursor-aicursorailovablelovable-devroocodetask-managertaskstasks-listwindsurfwindsurf-ai
chore: improve release and pre-release CI (#1075)
Ralph Khreishe8ceb0834137
diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.ymlindex 1ea3f85d..db52d557 100644--- a/.github/workflows/pre-release.yml+++ b/.github/workflows/pre-release.yml@@ -2,16 +2,24 @@ name: Pre-Release (RC)on:workflow_dispatch: # Allows manual triggering from GitHub UI/API+ inputs:+ branch:+ description: 'Branch to create pre-release from (e.g., next, develop)'+ required: false+ default: 'next'+ type: string-concurrency: pre-release-${{ github.ref }}-+concurrency: pre-release-${{ github.ref_name }}jobs:rc:runs-on: ubuntu-latest+ # Only allow pre-releases on non-main branches+ if: github.ref != 'refs/heads/main' && inputs.branch != 'main'steps:- uses: actions/checkout@v4with:fetch-depth: 0+ ref: ${{ inputs.branch || github.ref }}- uses: actions/setup-node@v4with:@@ -58,5 +66,5 @@ jobs:uses: actions-js/push@masterwith:github_token: ${{ secrets.GITHUB_TOKEN }}- branch: ${{ github.ref }}+ branch: ${{ inputs.branch || github.ref_name }}message: "chore: rc version bump"diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 3ddb07dc..16b90248 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -38,27 +38,27 @@ jobs:run: npm citimeout-minutes: 2- - name: Exit pre-release mode and clean up+ - name: Check pre-release moderun: |- echo "π Ensuring we're not in pre-release mode for main branch..."-- # Exit pre-release mode if we're in it- npx changeset pre exit || echo "Not in pre-release mode"-- # Remove pre.json file if it exists (belt and suspenders approach)- if [ -f .changeset/pre.json ]; then- echo "π§Ή Removing pre.json file..."- rm -f .changeset/pre.json- fi-- # Verify the file is gone- if [ ! -f .changeset/pre.json ]; then- echo "β pre.json successfully removed"- else- echo "β Failed to remove pre.json"+ set -euo pipefail+ echo "π Checking pre-release mode status..."+ if [[ -f .changeset/pre.json ]]; then+ echo "β ERROR: Main branch is in pre-release mode!"+ echo ""+ echo "Pre-release mode should only be used on feature branches, not main."+ echo ""+ echo "To fix this, run the following commands locally:"+ echo " npx changeset pre exit"+ echo " git add -u"+ echo " git commit -m 'chore: exit pre-release mode'"+ echo " git push origin main"+ echo ""+ echo "Then re-run this workflow."exit 1fi+ echo "β Not in pre-release mode - proceeding with release"+- name: Create Release Pull Request or Publish to npmuses: changesets/action@v1with: