72 lines
1.4 KiB
YAML
72 lines
1.4 KiB
YAML
name: QA
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- canary
|
|
- v3*
|
|
- "beta-*"
|
|
- "rc-*"
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout branch
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install
|
|
uses: ./.github/common-actions/install
|
|
|
|
- name: Build packages
|
|
run: pnpm build
|
|
|
|
eslint:
|
|
name: ESLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout branch
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install
|
|
uses: ./.github/common-actions/install
|
|
|
|
- name: Run ESLint
|
|
run: pnpm lint
|
|
|
|
types:
|
|
name: TypeScript
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout branch
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install
|
|
uses: ./.github/common-actions/install
|
|
|
|
- name: Run typecheck
|
|
run: pnpm typecheck
|
|
|
|
continuous-release:
|
|
name: Continuous Release
|
|
if: github.repository == 'heroui-inc/heroui'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
steps:
|
|
- name: Checkout branch
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install
|
|
uses: ./.github/common-actions/install
|
|
|
|
- name: Build packages
|
|
run: pnpm build
|
|
|
|
- name: Release
|
|
run: pnpx pkg-pr-new publish --pnpm './packages/styles' './packages/react'
|