From fc0646247653758531d198e5d51298022b9c658b Mon Sep 17 00:00:00 2001 From: Jon Kafton <939376+jonkafton@users.noreply.github.com> Date: Wed, 24 Apr 2024 17:52:53 +0200 Subject: [PATCH] Build front end to make available on Heroku (#813) --- .github/workflows/production.yml | 19 +++++++++++++++---- .github/workflows/release-candidate.yml | 19 +++++++++++++++---- 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 3555389959..a58f483c30 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -19,11 +19,22 @@ jobs: with: ref: release - - name: Download frontend build - uses: actions/download-artifact@v4 + - uses: actions/setup-node@v4 with: - name: frontend-build - path: frontends/mit-open/build + node-version: "18.18.2" + cache: yarn + cache-dependency-path: frontends/yarn.lock + + - name: Setup environment + run: sudo apt-get install libelf1 + + - name: Install frontend dependencies + working-directory: frontends + run: yarn install --immutable + + - name: Build frontend + working-directory: frontends + run: yarn run build - uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520 with: diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml index 037efa2b3e..3ffcfc6356 100644 --- a/.github/workflows/release-candidate.yml +++ b/.github/workflows/release-candidate.yml @@ -19,11 +19,22 @@ jobs: with: ref: release-candidate - - name: Download frontend build - uses: actions/download-artifact@v4 + - uses: actions/setup-node@v4 with: - name: frontend-build - path: frontends/mit-open/build + node-version: "18.18.2" + cache: yarn + cache-dependency-path: frontends/yarn.lock + + - name: Setup environment + run: sudo apt-get install libelf1 + + - name: Install frontend dependencies + working-directory: frontends + run: yarn install --immutable + + - name: Build frontend + working-directory: frontends + run: yarn run build - uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520 with: