From 1e0b5847803ccc965be7995c02d92eea8c9232ef Mon Sep 17 00:00:00 2001 From: derberg Date: Thu, 4 Apr 2024 11:01:36 +0200 Subject: [PATCH] ci: use older windows --- .github/workflows/if-nodejs-pr-testing.yml | 9 +++------ .github/workflows/if-nodejs-release.yml | 12 +++--------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/if-nodejs-pr-testing.yml b/.github/workflows/if-nodejs-pr-testing.yml index ff8a0a9321a..606fbae1f92 100644 --- a/.github/workflows/if-nodejs-pr-testing.yml +++ b/.github/workflows/if-nodejs-pr-testing.yml @@ -14,7 +14,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-latest, windows-2019] steps: - if: > !github.event.pull_request.draft && !( @@ -59,10 +59,7 @@ jobs: - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies shell: bash - run: | - rm -rf C:\npm\cache\_cacache\tmp - npm cache clean --force - npm ci + run: npm ci - if: steps.packagejson.outputs.exists == 'true' name: Test run: npm test --if-present @@ -71,4 +68,4 @@ jobs: run: npm run lint --if-present - if: steps.packagejson.outputs.exists == 'true' name: Run release assets generation to make sure PR does not break it - run: npm run generate:assets --if-present + run: npm run generate:assets --if-present \ No newline at end of file diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml index 842860d612b..eec6f0711f1 100644 --- a/.github/workflows/if-nodejs-release.yml +++ b/.github/workflows/if-nodejs-release.yml @@ -32,7 +32,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-latest, windows-2019] steps: - name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows run: | @@ -56,10 +56,7 @@ jobs: - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies shell: bash - run: | - rm -rf C:\npm\cache\_cacache\tmp - npm cache clean --force - npm ci + run: npm ci - if: steps.packagejson.outputs.exists == 'true' name: Run test run: npm test --if-present @@ -100,10 +97,7 @@ jobs: - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies shell: bash - run: | - rm -rf C:\npm\cache\_cacache\tmp - npm cache clean --force - npm ci + run: npm ci - if: steps.packagejson.outputs.exists == 'true' name: Add plugin for conventional commits for semantic-release run: npm install --save-dev conventional-changelog-conventionalcommits@5.0.0