From 659f54f9db9f9e88c3c7fe263c28edf64eaf241b Mon Sep 17 00:00:00 2001 From: Noah Spannbauer Date: Fri, 17 Jan 2025 20:56:33 -0600 Subject: [PATCH] Refactoring --- .github/workflows/api.yaml | 7 +++---- .github/workflows/app.yaml | 7 +++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/api.yaml b/.github/workflows/api.yaml index 38b0240..13fafe3 100644 --- a/.github/workflows/api.yaml +++ b/.github/workflows/api.yaml @@ -16,8 +16,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - submodules: true - name: 'Setup Node' uses: actions/setup-node@v4 @@ -25,13 +23,14 @@ jobs: node-version: ${{ vars.NODE_VERSION }} - name: Install + working-directory: ./api run: | npm install - name: Build - shell: bash + working-directory: ./api run: | - npm run build -w api + npm run build - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/app.yaml b/.github/workflows/app.yaml index 923b82b..e805842 100644 --- a/.github/workflows/app.yaml +++ b/.github/workflows/app.yaml @@ -16,7 +16,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: true + sparse-checkout: | + ./api - name: 'Setup Node' uses: actions/setup-node@v4 @@ -24,12 +25,14 @@ jobs: node-version: ${{ vars.NODE_VERSION }} - name: Install + working-directory: ./app run: | npm install - name: Build + working-directory: ./app run: | - npm run build -w app + npm run build - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3