From 980d9893f37e6764fdb58d4a92d7fda0b5d1efcf Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Mon, 29 Aug 2022 20:04:21 +0200 Subject: [PATCH] Speedup npm --- .github/workflows/ci-frontend.yml | 22 +++++++++++++--------- .nvmrc | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index 6b36f0ca90..9eeb41cbac 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -15,12 +15,12 @@ jobs: with: node-version-file: '.nvmrc' - - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- +# - uses: actions/cache@v2 +# with: +# path: ~/.npm +# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} +# restore-keys: | +# ${{ runner.os }}-node- - name: Remove twig syntax from package.json run: | @@ -28,6 +28,10 @@ jobs: sed -i -e 's/{% endif %}//g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json sed -i -e 's/"name".*/"name":"demo",/g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json - - run: npm install - - run: npm run build -- --continueAfterTestError=true - - run: npm run buildGroundControlSkeleton + - name: Install dependencies + run: yarn + + - run: | + npm run build -- --continueAfterTestError=true + echo $? + # - run: npm run buildGroundControlSkeleton diff --git a/.nvmrc b/.nvmrc index dae199aecb..958b5a36e1 100755 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v12 +v14