ci: migrate release process to NX (#1120) #1832
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: Quality Control | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
qc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Track master branch to make nx affected work | |
run: | | |
git branch --track main origin/master | |
- name: Install dependencies | |
uses: ./.github/workflows/dependencies-install | |
- name: Check format | |
run: yarn format | |
- name: Check lint | |
run: yarn lint | |
- name: Build all projects | |
run: yarn build | |
- name: Test all projects | |
run: yarn test | |
- name: Upload build artifacts for canary release | |
uses: ./.github/workflows/artifacts-upload | |
with: | |
upload-core-artifacts: true | |
upload-example-artifacts: ${{ github.ref == 'refs/heads/master' }} | |
upload-storybook-artifact: true | |
unicorn: | |
needs: qc | |
uses: ./.github/workflows/deploy-unicorn.yml |