From 1bbf0a96d6f4fb57d6806527c922ae1b5d38f6b6 Mon Sep 17 00:00:00 2001 From: Bhavya Jain Date: Tue, 19 Mar 2024 19:23:50 +0530 Subject: [PATCH] Add pnpm --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5045be..76ee8f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,3 @@ -# This workflow runs ESLint, Prettier, unit tests, and e2e tests using pnpm. name: CI on: @@ -17,6 +16,9 @@ jobs: uses: actions/setup-node@v3 with: node-version: 20 + - name: Install pnpm (if not already installed) + run: | + which pnpm || curl -fsSL https://get.pnpm.io/install.sh | sh - - name: Install dependencies run: pnpm install - name: Run Prettier (Pre-commit or in workflow) @@ -30,6 +32,9 @@ jobs: uses: actions/setup-node@v3 with: node-version: 20 + - name: Install pnpm (if not already installed) + run: | + which pnpm || curl -fsSL https://get.pnpm.io/install.sh | sh - - name: Install dependencies run: pnpm install - name: Run ESLint