From dea63fbbf1dc24556f3d423bb906265c1044f397 Mon Sep 17 00:00:00 2001 From: griest024 Date: Wed, 15 May 2024 17:04:21 -0400 Subject: [PATCH] ci: run linting with ignore invalid cache env var (#2804) --- .github/workflows/build.yml | 9 ++++++--- .github/workflows/lint.yml | 5 ++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 57acc3113e..5d88621fd2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,8 @@ name: Daffodil Build +env: + NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 + on: push: branches: @@ -44,7 +47,7 @@ jobs: node-version: ${{ matrix.node }} use-stamp-cache: true - - run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 npx lerna run build --concurrency=1 + - run: npx lerna run build --concurrency=1 - run: cd dist/apps/daffio && zip -r ../daffio.zip . @@ -113,7 +116,7 @@ jobs: node-version: ${{ matrix.node }} use-stamp-cache: true - - run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 npx lerna run test --scope="${{ matrix.package }}" --concurrency=1 + - run: npx lerna run test --scope="${{ matrix.package }}" --concurrency=1 name: Test ${{ matrix.package }} deploy_daffio: @@ -155,7 +158,7 @@ jobs: use-stamp-cache: true registry-url: 'https://registry.npmjs.org' - - run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 npx lerna run build + - run: npx lerna run build - uses: graycoreio/github-actions/set-versions-from-root@main diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9a90a4c573..30b68102d7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,8 @@ name: Daffodil Lint +env: + NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 + on: push: paths: @@ -56,4 +59,4 @@ jobs: node-version: ${{ matrix.node }} use-stamp-cache: true - - run: npx nx affected --target=lint + - run: npx nx affected --target=lint