Update react monorepo to v19 (major) #226
Workflow file for this run
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: Release ✈️ | |
on: | |
pull_request: | |
types: [ closed ] | |
branches: | |
- main | |
jobs: | |
cancel-previous: | |
name: Cancel Publishing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Build | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
create-release: | |
if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'release :tada:')) }} | |
name: Create Release | |
runs-on: ubuntu-latest | |
needs: cancel-previous | |
env: | |
GITHUB_TOKEN: ${{ secrets.AUTO_RELEASE_PAT }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Major Version Bump | |
if: ${{ contains(github.event.*.labels.*.name, 'major :1st_place_medal:') }} | |
run: make version BUMP=major | |
- name: Minor Version Bump | |
if: ${{ contains(github.event.*.labels.*.name, 'minor :2nd_place_medal:') }} | |
run: make version BUMP=minor | |
- name: Patch Version Bump | |
if: ${{ contains(github.event.*.labels.*.name, 'patch :3rd_place_medal:') }} | |
run: make version BUMP=patch |