Skip to content

Commit

Permalink
キャッシュ方法の変更
Browse files Browse the repository at this point in the history
  • Loading branch information
kei-s16 committed Aug 16, 2024
1 parent f91a493 commit 5fbcdb0
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,19 @@ jobs:
- name: "checkoutする"
uses: actions/checkout@v4

- name: "corepackの有効化"
run: corepack enable
- name: "Node.jsのセットアップ"
uses: actions/setup-node@v4
with:
node-version: 20
- name: "pnpmのセットアップ"
uses: pnpm/action-setup@v3
id: pnpm-install
with:
version: 8
run_install: false
cache: "pnpm"

- name: "reviewdogのインストール"
uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest

- name: "pnpmのパッケージ保存先を保持"
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: "キャッシュを使う"
uses: actions/cache@v4
id: pnpm-cache-node_modules
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: "パッケージのインストール"
run: pnpm install

Expand Down

0 comments on commit 5fbcdb0

Please sign in to comment.