Skip to content

Commit

Permalink
Print if the pnpm cache folder exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Jun 5, 2024
1 parent 7b1fa64 commit 27bce95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .buildkite/commands/install-node-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ fi

echo "--- :npm: Install Node dependencies"

if [ "$(uname -s)" = "Darwin" ]; then PNPM_PATH="$HOME/Library/pnpm/store/v3"; elif [ "$(uname -s)" = "Linux" ]; then PNPM_PATH="$HOME/.local/share/pnpm/store/v3"; else echo "Unsupported platform: $(uname -s)"; exit 1; fi; if [ -d "$PNPM_PATH" ]; then echo "PNPM cache path exists: $PNPM_PATH"; else echo "PNPM cache path does not exist: $PNPM_PATH"; fi

npm ci --unsafe-perm --prefer-offline --no-audit --no-progress "$@"

echo "--- :npm: Save cache if necessary"
Expand Down

0 comments on commit 27bce95

Please sign in to comment.