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