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