forked from services/password-reset-web
12 lines
387 B
Bash
12 lines
387 B
Bash
#!/usr/bin/env sh
|
|
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
|
|
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
|
|
set -o xtrace ## set -x : Print command traces before executing command
|
|
|
|
npm install --quiet
|
|
npm run --silent build
|
|
|
|
# push into archive
|
|
tar czf "$ARCHIVE/artifact.tar.gz" -C dist .
|
|
|