From f11c1a1ca75817c19a2a17c99a01725c972203d7 Mon Sep 17 00:00:00 2001 From: maxmwang Date: Tue, 9 Apr 2024 21:10:19 -0700 Subject: [PATCH] fix github actions --- .github/workflows/gen.yaml | 15 ++++++--------- .github/workflows/lint.yaml | 11 +++++------ 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/gen.yaml b/.github/workflows/gen.yaml index a6cd54f90..17f5e5dd4 100644 --- a/.github/workflows/gen.yaml +++ b/.github/workflows/gen.yaml @@ -15,21 +15,18 @@ jobs: with: node-version: 12 - - name: cd into /backend - run: cd backend - - - name: npm install - run: npm install - - - name: gen - run: npm run generate + - name: npm install and gen + working-directory: ./backend + run: | + npm install + npm run generate - name: test diff uses: tj-actions/verify-changed-files@v14 id: test-diff with: files: | - **/generated-types/*.ts + ./backend/**/generated-types/*.ts - if: steps.test-diff.outputs.files_changed == 'true' run: | diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index eaab58bed..78ca9d9bb 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -13,9 +13,8 @@ jobs: uses: actions/setup-node@v1 with: node-version: 12 - - name: cd into /backend - run: cd backend - - name: npm install - run: npm install - - name: lint - run: npm run lint + - name: npm install and lint + working-directory: ./backend + run: | + npm install + npm run lint