From 5594f5686f427902f42c0da5c679b43b07f43101 Mon Sep 17 00:00:00 2001 From: Saku K <6057704+saku-koodari@users.noreply.github.com> Date: Thu, 12 Sep 2024 12:59:06 +0300 Subject: [PATCH] eat: build node for build pipeline --- .github/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e1be4981..572afb111 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,17 @@ jobs: packages: write steps: - uses: actions/checkout@v4 + + - name: Build frontend + run: | + cd frontend + npm install + npm run build + tree out + (cd .. && ls -la) + mkdir -p ../server/target/classes/ + mv out ../server/target/classes/static + - name: Build and push Docker image run: | tag=ghcr.io/opetushallitus/koto-rekisteri:$GITHUB_SHA