Skip to content

fix: exit pre-release mode #1

fix: exit pre-release mode

fix: exit pre-release mode #1

name: Exit pre-release mode
on: workflow_dispatch
jobs:
exit-pre-release-mode:
if: ${{ github.ref == 'refs/heads/beta/release-next' || github.ref == 'refs/heads/canary' }}
name: exit pre-release mode
runs-on: ubuntu-latest-m
permissions:
contents: write
pull-requests: write
id-token: write
steps:

Check failure on line 14 in .github/workflows/exit-pre-release-mode.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/exit-pre-release-mode.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14
- name: Checkout branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0
- name: Install
uses: ./.github/common-actions/install
- name: remove pre.json
# we only remove .changeset/pre.json here
# since we want to keep the changeset files introduced in beta/release-next or canary branch
# once we merge it to canary / main, those files will be removed in version PR in canary
# and converted to corresponding changelogs
run: npx rimraf .changeset/pre.json
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GA_ACCESS_TOKEN }}
run: |
git config user.email "[email protected]"
git config user.name "Junior Garcia [Github Actions]"
git add -A
git commit -m "ci(changesets): exit pre-release mode"
git push https://${{ secrets.GA_ACCESS_TOKEN }}@github.com/${{ github.repository }} ${{ github.event.inputs.branch }}