Files
tabler/.github/workflows/build.yml
T

42 lines
1.1 KiB
YAML

name: Build
on:
pull_request:
paths-ignore:
- '.changeset/**'
- '.github/release-notes/**'
- '.github/*.md'
- '.github/ISSUE_TEMPLATE/**'
- '*.md'
- 'LICENSE'
push:
branches:
- dev
- next
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v7
- name: Set up the workspace
uses: ./.github/actions/setup
# turbo directly: `pnpm run build` also zips the package, which only the release needs
- name: Build
run: pnpm exec turbo build
# Nothing the last release shipped may disappear in a minor release. On the
# versions pull request (`changeset-release/dev` or `changeset-release/next`)
# it runs with --strict, but workflows there wait for a manual approval, so
# the Release workflow runs --strict too.
- name: Check backward compatibility
env:
STRICT: ${{ startsWith(github.head_ref, 'changeset-release/') && '--strict' || '' }}
run: pnpm run check:compat $STRICT