mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
chore: revert exit and enter pre release changes
This commit is contained in:
parent
cc1027ba63
commit
60f4c69408
21
.github/workflows/enter-pre-release-mode.yaml
vendored
21
.github/workflows/enter-pre-release-mode.yaml
vendored
@ -1,4 +1,3 @@
|
||||
name: Enter pre-release mode
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
@ -23,29 +22,11 @@ jobs:
|
||||
run: |
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config user.name "github-actions[bot]"
|
||||
|
||||
# Fetch latest changes and reset
|
||||
git fetch origin
|
||||
git reset --hard origin/${{ github.ref_name }}
|
||||
|
||||
if [ ${{ github.ref }} == 'refs/heads/canary' ]; then
|
||||
pnpm changeset:canary
|
||||
else
|
||||
pnpm changeset:beta
|
||||
fi
|
||||
|
||||
git add -A
|
||||
git commit -m 'chore(pre-release): enter pre-release mode'
|
||||
|
||||
# Create a new branch and force push changes
|
||||
git branch -D exit-pre-release-branch || true # Delete local branch if it exists
|
||||
git checkout -b exit-pre-release-branch
|
||||
git push --force --set-upstream origin exit-pre-release-branch
|
||||
|
||||
- name: Create pull request to canary
|
||||
uses: peter-evans/create-pull-request@v7
|
||||
with:
|
||||
title: "Pre-release changes for canary"
|
||||
body: "This PR includes pre-release changes for the canary branch."
|
||||
base: canary
|
||||
head: exit-pre-release-branch
|
||||
git push
|
||||
13
.github/workflows/exit-pre-release.yaml
vendored
13
.github/workflows/exit-pre-release.yaml
vendored
@ -34,15 +34,4 @@ jobs:
|
||||
git config user.name "github-actions[bot]"
|
||||
git add -A
|
||||
git commit -m "ci(changesets): exit pre-release mode"
|
||||
|
||||
# Create a new branch and push changes
|
||||
git checkout -b exit-pre-release-branch
|
||||
git push --set-upstream origin exit-pre-release-branch
|
||||
|
||||
- name: Create pull request
|
||||
uses: peter-evans/create-pull-request@v7
|
||||
with:
|
||||
title: "Exit pre-release mode"
|
||||
body: "This PR exits pre-release mode by removing the pre.json file."
|
||||
base: ${{ github.ref_name }}
|
||||
head: exit-pre-release-branch
|
||||
git push
|
||||
Loading…
x
Reference in New Issue
Block a user