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' default: 'next'
type: string type: string
concurrency: pre-release-${{ github.ref }} concurrency: pre-release-${{ inputs.branch || github.ref }}
jobs: jobs:
rc: rc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Only allow pre-releases on non-main branches # 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: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ inputs.branch || github.ref }}
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
@@ -66,5 +67,5 @@ jobs:
uses: actions-js/push@master uses: actions-js/push@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }} branch: ${{ inputs.branch || github.ref }}
message: "chore: rc version bump" message: "chore: rc version bump"

View File

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