Skip to content

Prepare to release a ton of package versions #6

Prepare to release a ton of package versions

Prepare to release a ton of package versions #6

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-publish-packages:
name: Prepare and publish 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