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'
|
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"
|
||||||
|
|||||||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -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 ""
|
||||||
|
|||||||
Reference in New Issue
Block a user