From 16f5239615c9e9e2d6c2f03680bb6faf62c11a3a Mon Sep 17 00:00:00 2001 From: Dobbymin Date: Tue, 5 Nov 2024 22:04:53 +0900 Subject: [PATCH] =?UTF-8?q?deploy:=20pnpm=20=EC=84=A4=EC=B9=98=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20script=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 5 ++++- .github/workflows/deploy.yml | 15 +++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a73485b..dd5cf2b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 - cache: 'pnpm' + + - name: Install Pnpm package manager + run: | + npm install -g pnpm - name: Install Dependencies run: pnpm install diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2f7e92a8..2bd6c434 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,11 +17,18 @@ jobs: - name: Checkout source code. uses: actions/checkout@master - - name: Install NodeJs & Pnpm package manager - uses: actions/setup-node@v4 + - name: Cache node modules + uses: actions/cache@v4 with: - node-version: 22 - cache: 'pnpm' + path: node_modules + key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-build- + ${{ runner.OS }}- + + - name: Install pnpm + run: | + npm install -g pnpm - name: Create .env file run: |