Skip to content

chore(lerna): add lerna to automate publishing #55

chore(lerna): add lerna to automate publishing

chore(lerna): add lerna to automate publishing #55

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install pnpm
run: npm install -g pnpm@8
- name: Install dependencies
run: pnpm install
- name: Check formatting of project files (staged)
if: ${{ github.event_name == 'pull_request' }}
run: pnpm format:staged
- name: Check formatting of project files (non-staged)
if: ${{ github.event_name != 'pull_request' }}
run: pnpm format
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install pnpm
run: npm install -g pnpm@8
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint && pnpm lint:styles
license:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install pnpm
run: npm install -g pnpm@8
- name: Install dependencies
run: pnpm install
- name: License check
run: pnpm lint:license