Skip to content

chore: use @types/node v22 #557

chore: use @types/node v22

chore: use @types/node v22 #557

Workflow file for this run

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
with:
version: 9
- 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
with:
version: 9
- 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