Enter pre-release mode #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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' | |
git push |