Skip to content

Commit 27bce95

Browse files
author
Gerardo
committed
Print if the pnpm cache folder exists
1 parent 7b1fa64 commit 27bce95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.buildkite/commands/install-node-dependencies.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ fi
2929

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

32+
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
33+
3234
npm ci --unsafe-perm --prefer-offline --no-audit --no-progress "$@"
3335

3436
echo "--- :npm: Save cache if necessary"

0 commit comments

Comments
 (0)