chore: release packages #1577
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| FORCE_COLOR: 2 | |
| HUSKY: 0 | |
| NODE_VERSION: 24 | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Cache Yarn cache | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: yarn-cache | |
| with: | |
| path: ~/.cache/yarn | |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ env.cache-name }}- | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Install dependencies and build | |
| run: yarn --frozen-lockfile | |
| - name: Check size | |
| run: yarn lint | |
| size: | |
| name: Check size | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Cache Yarn cache | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: yarn-cache | |
| with: | |
| path: ~/.cache/yarn | |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ env.cache-name }}- | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Install dependencies and build | |
| run: yarn --frozen-lockfile | |
| - name: Check size | |
| run: yarn --cwd packages/renderer run size | |
| test: | |
| name: Run unit tests (Node.js ${{ matrix.node_version }}; React ${{ matrix.react_version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # We aim to test all maintained LTS versions of Node.js as well as the latest stable version | |
| node_version: [20, 22, 24] | |
| react_version: [16, 17, 18, 19] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Cache Yarn cache | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: yarn-cache | |
| with: | |
| path: ~/.cache/yarn | |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ env.cache-name }}- | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node_version }} | |
| - name: Install dependencies and build | |
| run: yarn --frozen-lockfile | |
| - name: Run tests | |
| run: REACT_VERSION=${{ matrix.react_version }} yarn test |