chore: apply requested changes
This commit is contained in:
7
.github/workflows/pre-release.yml
vendored
7
.github/workflows/pre-release.yml
vendored
@@ -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"
|
||||
|
||||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user