-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,33 @@ | ||
# use by deploy script | ||
#!/usr/bin/zsh | ||
|
||
set -xoe pipefail | ||
# Enable error checking and pipefail | ||
set -o pipefail | ||
|
||
# Load nvm | ||
export NVM_DIR="$HOME/.nvm" | ||
{ | ||
set +x # Disable command tracing | ||
if [ -s "$NVM_DIR/nvm.sh" ]; then | ||
. "$NVM_DIR/nvm.sh" | ||
# Source bash_completion to ensure nvm functions are available | ||
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" > /dev/null 2>&1 | ||
else | ||
echo "nvm.sh not found" | ||
exit 1 | ||
fi | ||
} 2>/dev/null | ||
|
||
# Re-enable error checking and pipefail without tracing | ||
set -o pipefail | ||
|
||
# Check if nvm command is available | ||
if ! command -v nvm &> /dev/null; then | ||
echo "nvm cli not found" | ||
exit 1 | ||
fi | ||
|
||
nvm use | ||
nvm ci | ||
npm run build | ||
|
||
# Run npm commands | ||
npm ci | ||
npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters