Skip to content

Commit

Permalink
chore(deps-dev): upgrade to lerna 8 (#535)
Browse files Browse the repository at this point in the history
Had to remove NodeJS 14 and 16 from CI because these versions have
reached end of life and not supported in Lerna 8.
  • Loading branch information
aikoven authored Feb 19, 2024
1 parent 8bc1c6d commit 9b886e0
Show file tree
Hide file tree
Showing 4 changed files with 865 additions and 1,284 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,25 @@ jobs:
fail-fast: false
matrix:
environment:
- node-version: '14.15'
node-options: --require "abort-controller/polyfill"
- node-version: '14.17'
node-options: --experimental-abortcontroller
- node-version: 16.x
# Reached end of life:
# - node-version: '14.15'
# node-options: --require "abort-controller/polyfill"
# - node-version: '14.17'
# node-options: --experimental-abortcontroller
# - node-version: 16.x
- node-version: 18.x
- node-version: 20.x

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.environment.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.environment.node-version }}
- name: Restore Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key:
Expand All @@ -62,20 +64,22 @@ jobs:
fail-fast: false
matrix:
environment:
- node-version: 16.x
node-options: --experimental-fetch
# Reached end of life:
# - node-version: 16.x
# node-options: --experimental-fetch
- node-version: 18.x
- node-version: 20.x

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.environment.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.environment.node-version }}
- name: Restore Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key:
Expand All @@ -98,20 +102,20 @@ jobs:
timeout-minutes: 15

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Chrome
uses: browser-actions/setup-chrome@v1
- name: Use Node.js 18.x
uses: actions/setup-node@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x
- name: Restore Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key: modules-${{ runner.os }}-18.x-${{ hashFiles('yarn.lock') }}
key: modules-${{ runner.os }}-20.x-${{ hashFiles('yarn.lock') }}
- run: yarn --frozen-lockfile
- run: yarn build
- run:
Expand Down
4 changes: 2 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"packages": ["packages/*"],
"version": "independent",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
"version": {
"allowBranch": "master",
Expand All @@ -17,5 +16,6 @@
"message": "chore(release): publish"
}
},
"changelogPreset": "conventionalcommits"
"changelogPreset": "conventionalcommits",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"conventional-changelog-conventionalcommits": "^6.1.0",
"husky": "^8.0.1",
"jest": "^29.3.1",
"lerna": "^6.0.1",
"lerna": "^8.1.2",
"lint-staged": "^13.0.3",
"mkdirp": "^3.0.1",
"prettier": "^2.8.8",
Expand Down
Loading

0 comments on commit 9b886e0

Please sign in to comment.