Skip to content

Commit

Permalink
Fix type on --prefix gutenberg option in CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Mar 12, 2024
1 parent 7d9c1b0 commit 1bcf648
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .buildkite/commands/install-node-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ echo "--- :npm: Save cache if necessary"
# What we are caching is the root npm folder, which stores pacakge downloads so they are available if the package.json resolution demands them.
save_cache "$HOME/.npm" "$CACHEKEY"

# If we attempted to save the pnpm cache when npm run with '--prefix gutenber', the command might fail.
# If we attempted to save the pnpm cache when npm run with '--prefix gutenberg', the command might fail.
# That's because the Jetpack submodule alone uses pnpm.
# Therefore, if no pnpm cache was available at the start, running with '--prefix gutenberg' would not have generated one and 'save_cache' would fail to find it.
if echo "$@" | grep -q -- "--prefix gutenber"; then
echo "Skipping pnpm cache save due to --prefix gutenber parameter while PNPM is used in Jetpack."
if echo "$@" | grep -q -- '--prefix gutenberg'; then
echo 'Skipping pnpm cach save due to --prefix gutenber parameter while PNPM is used in Jetpack.'
exit 0
fi

Expand Down

0 comments on commit 1bcf648

Please sign in to comment.