mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: Enter pre-release mode
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
enter-pre-release-mode:
|
|
if: ${{ github.ref == 'refs/heads/beta/release-next' || github.ref == 'refs/heads/canary' }}
|
|
runs-on: ubuntu-latest-m
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
id-token: write
|
|
steps:
|
|
- name: Checkout branch
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install
|
|
uses: ./.github/common-actions/install
|
|
|
|
- name: Enter pre-release mode
|
|
id: enter-pre-release-mode
|
|
run: |
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git config user.name "github-actions[bot]"
|
|
|
|
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 checkout -b changeset-branch
|
|
git push --force --set-upstream origin changeset-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: changeset-branch |