From ad00104ad7743e2d696e545c849af2b3cb7fc906 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] feat: build node for build pipeline --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a77974529..0ee073f92 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,15 @@ jobs: packages: write steps: - uses: actions/checkout@v4 + + - name: Build frontend + run: npm run build + with: + path: ./frontend + + - name: Move built frontend to maven + run: mv frontend/out server/target/classes/static + - name: Build and push Docker image run: | tag=ghcr.io/opetushallitus/koto-rekisteri:$GITHUB_SHA