18 lines
No EOL
313 B
Bash
Executable file
18 lines
No EOL
313 B
Bash
Executable file
#!/bin/bash
|
|
set -e # Exit with nonzero exit code if anything fails
|
|
|
|
echo "Preparing for deployment..."
|
|
|
|
echo "- Running tests..."
|
|
npx jest
|
|
|
|
echo "- Building site..."
|
|
npm run build
|
|
|
|
echo "- Commit any build artifacts..."
|
|
git add .
|
|
git commit -m "chore: build artifacts"
|
|
|
|
|
|
|
|
echo "Finished preparing for deployment." |