chore: revert exit and enter pre release changes

This commit is contained in:
Junior Garcia 2024-11-30 08:12:31 -03:00
parent cc1027ba63
commit 60f4c69408
2 changed files with 2 additions and 32 deletions

View File

@ -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

View File

@ -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