From bb59eb120fa519c9800b120d095262fd53c99571 Mon Sep 17 00:00:00 2001 From: Happhee <79238676+Happhee@users.noreply.github.com> Date: Fri, 31 May 2024 16:54:01 +0900 Subject: [PATCH] Update lint-check.yml --- .github/workflows/lint-check.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint-check.yml b/.github/workflows/lint-check.yml index fafe58dc..f33afbd9 100644 --- a/.github/workflows/lint-check.yml +++ b/.github/workflows/lint-check.yml @@ -1,6 +1,6 @@ -name: Lint Check +name: lint-check -on: pull_request +on: push jobs: lint-check: @@ -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