From 1ec1f0e591dc3b462cbf169d2a2858d3fdf071df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Fricks?= Date: Fri, 8 Nov 2024 14:16:44 -0300 Subject: [PATCH] fix: Manually set the PNPM_HOME environment variable --- .github/workflows/main.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 73b95eb..ab852dc 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -2,13 +2,13 @@ name: Vercel Development Deployment env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - SHELL: /bin/bash # Specify the shell + SHELL: /bin/bash on: push: branches: - main jobs: - Deploy-development: + Deploy-Production: runs-on: ubuntu-latest steps: # CHECKOUT REPOSITORY @@ -23,15 +23,14 @@ jobs: - name: Install pnpm run: npm install -g pnpm - # SET UP PNPM GLOBAL BIN DIRECTORY WITH EXPLICIT SHELL + # MANUALLY SET PNPM_HOME AND ADD TO PATH - name: Set up pnpm global bin directory - run: pnpm setup - env: - SHELL: /bin/bash - - # ADD PNPM TO PATH - - name: Add pnpm to PATH - run: echo "export PATH=$(pnpm bin):\$PATH" >> $GITHUB_ENV + run: | + export PNPM_HOME="$HOME/.pnpm" + mkdir -p "$PNPM_HOME" + echo "PNPM_HOME=$PNPM_HOME" >> $GITHUB_ENV + echo "PATH=$PNPM_HOME/bin:$PATH" >> $GITHUB_ENV + shell: bash # INSTALL DEPENDENCIES WITH PNPM - name: Install dependencies