Skip to content

Commit 9342c8e

Browse files
committed
npm install in scripts
1 parent b5a7251 commit 9342c8e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

scripts/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
66

77
. "${SCRIPT_DIR}"/azure.env
88

9+
npm install
910
npm run build
1011
func azure functionapp publish "${AZURE_FUNCTION_APP_NAME}" || echo "Failed to publish function app, try running 'az logout' then 'az login', then try again"

scripts/make-function-zip.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ set -euo pipefail
55
# Make the Function zip archive for deployment to the Azure Functions App
66

77
rm slack-secret-scanning-notifier.zip >/dev/null 2>&1 || echo "[.] No existing zip file to remove"
8+
9+
npm install >/dev/null 2>&1
810
npm run build >/dev/null 2>&1
11+
912
zip -q -r slack-secret-scanning-notifier.zip . \
1013
-x 'slack-secret-scanning-notifier.zip' '.vscode/*' '*settings*.json' \
1114
'.git/*' '.github/*' '.gitignore' '.eslint*' '.funcignore' '*.md' \

0 commit comments

Comments
 (0)