From 27f81be45505745435cab87c7afba81ab8c7a693 Mon Sep 17 00:00:00 2001 From: neila <40727091+neila@users.noreply.github.com> Date: Tue, 17 Dec 2024 00:08:44 +0900 Subject: [PATCH 1/2] ci cache --- .github/workflows/ci.yml | 5 +++++ .github/workflows/deploy.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38cff13..99b5b34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,11 @@ jobs: uses: pnpm/action-setup@v4 with: run_install: false + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' - name: Get pnpm cache directory path id: pnpm-cache-path run: echo "store=$(pnpm store path --silent)" >> $GITHUB_OUTPUT diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 760ea81..af42322 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,6 +27,11 @@ jobs: uses: pnpm/action-setup@v4 with: run_install: false + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' - uses: actions/configure-pages@v5 with: # Automatically inject basePath in next.config.js From cf30739857bb84313e6de4c4a006e6f6eac0b60e Mon Sep 17 00:00:00 2001 From: neila <40727091+neila@users.noreply.github.com> Date: Tue, 17 Dec 2024 00:16:46 +0900 Subject: [PATCH 2/2] cache path --- .github/workflows/_ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_ci.yml b/.github/workflows/_ci.yml index 5df0249..3312e94 100644 --- a/.github/workflows/_ci.yml +++ b/.github/workflows/_ci.yml @@ -15,7 +15,8 @@ jobs: with: node-version: 20.x cache: pnpm - - name: Get pnpm store directory + - name: Get pnpm cache directory path + id: pnpm-cache-path run: | echo "store=$(pnpm store path --silent)" >> $GITHUB_OUTPUT - uses: actions/cache@v4