Skip to content

refactor: update project configuration #6

refactor: update project configuration

refactor: update project configuration #6

Workflow file for this run

name: ci
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/iron'
cache: 'npm'
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run lint
- name: Testing
run: npm run test
- name: Clean build folder
run: rm -rf dist
- name: Build
run: npm run build