Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

fix: Fix vite build #198

fix: Fix vite build

fix: Fix vite build #198

Workflow file for this run

name: Main
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
install:
name: Install
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19]
pnpm-version: [8]
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: ${{ matrix.pnpm-version }}
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
- name: Cache pnpm
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: pnpm-
- name: Cache node_modules
uses: actions/cache@v3
id: cache-node-modules
with:
path: |
node_modules
templates/**/node_modules
key: modules-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: pnpm i
build:
name: Build + Lint
needs: install
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19]
pnpm-version: [8]
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: ${{ matrix.pnpm-version }}
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
templates/**/node_modules
key: modules-${{ hashFiles('pnpm-lock.yaml') }}
- name: Build
run: pnpm build
- name: Lint code
run: pnpm lint
- name: Check types
run: pnpm typecheck