Skip to content

refactor: set up built-in multi validation system #448

refactor: set up built-in multi validation system

refactor: set up built-in multi validation system #448

Workflow file for this run

name: CI/CD
on:
push:
paths:
- "packages/**"
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@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
- 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@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