Skip to content

Commit

Permalink
Update lint-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Happhee authored May 31, 2024
1 parent 2add46d commit bb59eb1
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/lint-check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Lint Check
name: lint-check

on: pull_request
on: push

jobs:
lint-check:
Expand All @@ -14,25 +14,30 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '19'

node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
id : cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install

- name: Run lint
- name: Run lint
run: pnpm lint

0 comments on commit bb59eb1

Please sign in to comment.