diff --git a/entrypoint.sh b/entrypoint.sh index 33164a9..81b5424 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,10 +22,14 @@ if [ -z "$STORAGE_ACCOUNT_NAME" ]; then exit 1 fi -echo "Logging in..." -az login --service-principal --username ${{secrets.AZURE_CLIENT_ID}} --password ${{secrets.AZURE_SECRET}} --tenant ${{secrets.AZURE_TENANT_ID}} +echo "Installing dependencies..." +npm install + +echo "Building site" +npm run build -echo "Install yarn" +echo "Logging in..." +az login --service-principal --username ${AZURE_CLIENT_ID} --password ${AZURE_SECRET} --tenant ${AZURE_TENANT_ID} echo "Install dependencies"