From dfc09a81a29a0d435de9caa840bea9cfbd2087ca Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Fri, 17 Nov 2023 14:15:44 +0100 Subject: [PATCH] chore: Update CI workflows to latest Node versions --- .github/workflows/build_and_test.yml | 26 +---------------------- .github/workflows/publish_and_install.yml | 17 +-------------- 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index aef31ec5c8..ec427388c5 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -14,7 +14,7 @@ on: - minor env: CI: true - node: 18.x + node: 20.x jobs: build: name: build @@ -25,15 +25,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ env.node }} -# - uses: actions/cache@v3 -# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) -# with: -# path: '**/node_modules' -# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} -# restore-keys: | -# ${{ runner.os }}-yarn- - name: Yarn install -# if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn install - name: Build run: yarn build @@ -46,15 +38,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ env.node }} -# - uses: actions/cache@v3 -# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) -# with: -# path: '**/node_modules' -# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} -# restore-keys: | -# ${{ runner.os }}-yarn- - name: Yarn install -# if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn install --prefer-offline - name: Build run: yarn lerna run ci @@ -113,15 +97,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ env.node }} -# - uses: actions/cache@v3 -# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) -# with: -# path: '**/node_modules' -# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} -# restore-keys: | -# ${{ runner.os }}-yarn- - name: Yarn install -# if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn install --prefer-offline - name: Build run: yarn lerna run ci diff --git a/.github/workflows/publish_and_install.yml b/.github/workflows/publish_and_install.yml index a649c5e77e..36ee877a58 100644 --- a/.github/workflows/publish_and_install.yml +++ b/.github/workflows/publish_and_install.yml @@ -20,11 +20,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - # Temporarily disabled Node v18 because of this issue: - # https://github.com/vendure-ecommerce/vendure/actions/runs/5200017548/jobs/9378196658#step:4:48 - # which is related to our Verdaccio setup. Will need some investigation. - #node-version: [16.x, 18.x] - node-version: [16.x] + node-version: [18.x, 20.x] fail-fast: false steps: - uses: actions/checkout@v3 @@ -46,18 +42,7 @@ jobs: - name: Windows dependencies if: matrix.os == 'windows-latest' run: npm install -g @angular/cli -# - name: Get yarn cache directory path -# id: yarn-cache-dir-path -# run: echo "::set-output name=dir::$(yarn cache dir)" -# - uses: actions/cache@v3 -# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) -# with: -# path: '**/node_modules' -# key: ${{ runner.os }}-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }} -# restore-keys: | -# ${{ runner.os }}-${{ matrix.node-version }}-yarn- - name: Yarn install -# if: steps.yarn-cache.outputs.cache-hit != 'true' run: | yarn config set unsafe-perm true yarn install --network-timeout 1000000 --prefer-offline