From bdc1319704587885efbada8ecfeb36cce000b119 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Sun, 15 Feb 2026 05:24:17 +0100 Subject: [PATCH] chore: decouple azure staging deployment from package.json scripts From feat/dockerize. Bringing into master branch to allow for deployment to staging when dockerize merges. Test-bot: skip --- .../staging_com-keyman-staging-status.yml | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/staging_com-keyman-staging-status.yml b/.github/workflows/staging_com-keyman-staging-status.yml index 35bbe10..c334d60 100644 --- a/.github/workflows/staging_com-keyman-staging-status.yml +++ b/.github/workflows/staging_com-keyman-staging-status.yml @@ -19,13 +19,29 @@ jobs: - name: Set up Node.js version uses: actions/setup-node@v1 with: - node-version: '20.x' + node-version: '22.x' - - name: npm install, build, and test + - name: npm ci + build - public run: | - npm install - npm run build --if-present - npm run test --if-present + echo "- Building public for release" + cd public + npm ci + ./node_modules/.bin/ng build --configuration production + cd .. + + - name: npm ci + build - server + run: | + echo "- Building server for release" + cd server + npm ci + ./node_modules/.bin/tsc + cd .. + + - name: server test + run: | + cd server + npx mocha --import=./_mocha_register.js + cd .. - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v2