Skip to content

build(lib): update dependencies and required React version to 18.3.1 #357

build(lib): update dependencies and required React version to 18.3.1

build(lib): update dependencies and required React version to 18.3.1 #357

Workflow file for this run

name: CI/CD
on:
push:
paths:
- "packages/**"
branches:
- main
- next
- 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@v3
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run lint:lib
CD:
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next'|| 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@v3
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
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