Skip to content

update deps

update deps #5

Workflow file for this run

name: Lint
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
env:
eslint-cache-version: v1
eslint-cache-path: ${{ github.workspace }}/node_modules/.cache/eslint
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 1
- name: Enable corepack
run: |
corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version-file: .node-version
cache: pnpm
- name: Install dependencies
run: |
pnpm i --frozen-lockfile
- name: Restore eslint cache
uses: actions/[email protected]
with:
path: ${{ env.eslint-cache-path }}
key: eslint-${{ env.eslint-cache-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: eslint-${{ env.eslint-cache-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Run eslint
run: |
pnpm lint --cache --cache-location ${{ env.eslint-cache-path }} --cache-strategy content