chore: apply requested changes

This commit is contained in:
Ralph Khreish
2025-08-03 15:18:49 +03:00
parent dcf49fc590
commit 1686a30aa6
2 changed files with 5 additions and 5 deletions

View File

@@ -9,17 +9,18 @@ on:
default: 'next'
type: string
concurrency: pre-release-${{ github.ref }}
concurrency: pre-release-${{ inputs.branch || github.ref }}
jobs:
rc:
runs-on: ubuntu-latest
# Only allow pre-releases on non-main branches
if: github.ref != 'refs/heads/main'
if: github.ref != 'refs/heads/main' && (!inputs.branch || inputs.branch != 'main')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.branch || github.ref }}
- uses: actions/setup-node@v4
with:
@@ -66,5 +67,5 @@ jobs:
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
branch: ${{ inputs.branch || github.ref }}
message: "chore: rc version bump"

View File

@@ -41,7 +41,6 @@ jobs:
- name: Check pre-release mode
run: |
echo "🔍 Checking pre-release mode status..."
if [ -f .changeset/pre.json ]; then
echo "❌ ERROR: Main branch is in pre-release mode!"
echo ""
@@ -56,7 +55,7 @@ jobs:
echo "Then re-run this workflow."
exit 1
fi
echo "✅ Not in pre-release mode - proceeding with release"
- name: Create Release Pull Request or Publish to npm