feat: require Next.js 15.1 and React 19 (#305) #566
This file contains 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/CD | |
on: | |
push: | |
paths: | |
- "packages/**" | |
- "turbo.json" | |
- "package.json" | |
branches: | |
- main | |
- beta | |
- next | |
- experimental | |
- 4.x | |
pull_request: | |
paths: | |
- "packages/**" | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: pnpm/action-setup@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
cache: "pnpm" | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm run lint:lib | |
- run: pnpm run test:lib | |
CD: | |
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/next'|| github.ref == 'refs/heads/experimental' || github.ref == 'refs/heads/4.x' }} | |
runs-on: ubuntu-latest | |
needs: [CI] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: pnpm/action-setup@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
cache: "pnpm" | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm run build:lib | |
- name: Release lib to NPM | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: pnpm run deploy:lib |