Bump the non-majors group across 1 directory with 16 updates #56
Workflow file for this run
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: main | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
packages: | |
name: Install Packages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- run: corepack enable pnpm | |
# pnpm cache | |
- id: pnpm | |
run: echo "cache-dir=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ steps.pnpm.outputs.cache-dir }} | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- run: pnpm install --frozen-lockfile | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: [packages] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- run: corepack enable pnpm | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build | |
env: | |
NODE_ENV: production | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
needs: [packages] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- run: corepack enable pnpm | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm lint --max-warnings=0 | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
needs: [packages] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- run: corepack enable pnpm | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm prettier --check . | |
typeCheck: | |
name: Type Check | |
runs-on: ubuntu-latest | |
needs: [packages] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- run: corepack enable pnpm | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm type-check |