Prepare to release a ton of package versions #7
This file contains hidden or 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: Pull request build and pre-deployment checks | |
| # Group requests for the same pull request to avoid multiple builds | |
| concurrency: | |
| group: ${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| prepare-and-build-packages: | |
| name: Prepare and build packages | |
| runs-on: ubuntu-latest | |
| env: | |
| # Ensure that Chalk uses colors in the output | |
| FORCE_COLOR: 2 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: | | |
| yarn install --frozen-lockfile | |
| # We could probably get the release status | |
| # without installing all dependencies, | |
| # allowing this to be set up as another job. | |
| - name: Get release status | |
| run: | | |
| yarn run status | |
| - name: Build all packages | |
| run: | | |
| yarn run build | |
| build-storybook: | |
| name: Build storybook | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: | | |
| yarn install --frozen-lockfile | |
| - name: Build storybook | |
| run: | | |
| yarn run build:storybook |