Skip to content

fix(versioin): v0.0.6 #42

fix(versioin): v0.0.6

fix(versioin): v0.0.6 #42

Workflow file for this run

name: PR checks
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [develop, main]
jobs:
build-and-lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-
- name: Install dependencies
run: npm ci
- name: Build (TypeScript + Vite)
run: npm run build --if-present
- name: ESLint
run: |
if npm run -s lint --silent; then
echo "ESLint passed"
else
echo "ESLint failed" && exit 1
fi
- name: Prettier check
run: |
npm run format:check