From 1af09b1459a204bb48b8f47c13d50116c2060bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anne=20L=27H=C3=B4te?= Date: Wed, 30 Aug 2023 13:52:23 +0200 Subject: [PATCH] fix(ci): Build front for production --- .github/workflows/production.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index e7052a1..8b450f2 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -27,6 +27,12 @@ jobs: - name: 🔑 Login docker registry run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} + - name: Build client + uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm ci --silent && npm run build --mode=staging + - name: 🐋 Build Docker image run: docker build -t ${{ github.repository }} --build-arg MODE=production .