From a9557e98c89dcbb946db94306cdfead8b2f8f6b9 Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 13 Feb 2024 06:20:46 -0600 Subject: [PATCH] ci: syntax --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 407cf4a..61a3472 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: with: path: '**/node_modules' key: ${{ hashFiles('**/package-lock.json') }} - - if: steps.cache-node-modules.outputs.cache-hit != 'true' + - if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }} run: npm ci - run: npm run build @@ -61,9 +61,9 @@ jobs: path: '**/node_modules' key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('package-lock.json') }} - run: npm config set registry ${{ vars.NPM_CI_REGISTRY }} - if: ${{ vars.NPM_CI_REGISTRY }} && steps.cache-node-modules.outputs.cache-hit != 'true' + if: ${{ vars.NPM_CI_REGISTRY && steps.cache-node-modules.outputs.cache-hit != 'true' }} - run: npm ci - if: steps.cache-node-modules.outputs.cache-hit != 'true' + if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }} - run: | npm run -- test -t 120000 npm run -- test -t 120000 -p e2e @@ -84,6 +84,6 @@ jobs: with: path: '**/node_modules' key: ${{ hashFiles('**/package-lock.json') }} - - if: steps.cache-node-modules.outputs.cache-hit != 'true' + - if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }} run: npm ci - run: npm run lint