Skip to content

Commit

Permalink
chore: Update CI workflows to latest Node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 17, 2023
1 parent 5e506fd commit dfc09a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 41 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- minor
env:
CI: true
node: 18.x
node: 20.x
jobs:
build:
name: build
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/publish_and_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit dfc09a8

Please sign in to comment.