From 54e2be52e214d9d97e6c6cfdad4e8a6435d3c5dc Mon Sep 17 00:00:00 2001 From: "oe.sonnh" Date: Tue, 11 Jun 2024 15:15:49 +0700 Subject: [PATCH] Setup pnpm for github action --- .github/workflows/deploy.yml | 4 ++++ .github/workflows/npm-publish.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5d65f509..a5dd233d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,6 +38,10 @@ jobs: with: node-version: lts/iron cache: yarn + - name: Setup pnpm + uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions + with: + version: 8 - name: Setup Pages uses: actions/configure-pages@v3 - name: Install dependencies diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f139e2b1..2753d8ea 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -12,6 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions + with: + version: 8 - uses: actions/setup-node@v4 with: node-version: lts/iron