Skip to content

Commit

Permalink
fix!: drop support for EOL node versions prior to 14 (#3136)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry authored May 23, 2022
1 parent ff7c961 commit 5b2228f
Show file tree
Hide file tree
Showing 64 changed files with 143 additions and 141 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,39 @@ on:
branches:
- main
- next
- 'test/*'
- "test/*"
pull_request:
types: [ assigned, opened, synchronize, reopened, labeled ]
types: [assigned, opened, synchronize, reopened, labeled]

name: ci

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
# only lint on latest node
node-version: 14
# only lint on latest LTS node
node-version: 16
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm -g i npm@7
- run: npm -g i npm@8.10.0
- run: npm ci
- run: npm run ci:lint

test:
needs: [ lint ]
needs: [lint]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [ 14, 12, 10 ]
script: [ 'ci:test:unit', 'ci:test:integration' ]
node: [14, 16, 18]
script: ["ci:test:unit", "ci:test:integration"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -49,24 +51,24 @@ jobs:
run: |
git config --global user.email [email protected]
git config --global user.name "Tester McPerson"
- run: npm -g i npm@next-7
- run: npm -g i npm@8.10.0
- run: npm ci
- run: npm run ${{ matrix.script }}

windows:
needs: [ lint ]
needs: [lint]
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
script: [ 'ci:test:unit', 'ci:test:integration' ]
subset: [ publish, non-publish ]
script: ["ci:test:unit", "ci:test:integration"]
subset: [publish, non-publish]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
# only run windows tests on latest node
node-version: 14
# only run windows tests on latest LTS node
node-version: 16
# caching on windows is LUDICROUSLY slow
# - name: Get npm cache directory
# id: npm-cache
Expand All @@ -82,7 +84,7 @@ jobs:
run: |
git config --global user.email [email protected]
git config --global user.name "Tester McPerson"
- run: npm -g i npm@next-7
- run: npm -g i npm@8.10.0
- run: npm ci
- env:
LERNA_CI_TYPE: ${{ matrix.subset }}
Expand Down
2 changes: 1 addition & 1 deletion commands/add/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/changed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/clean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/exec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/publish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/run/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/child-process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/command/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/conventional-commits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/filter-options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/global-options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/lerna/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"cli.js"
],
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"tag": "next"
Expand Down
2 changes: 1 addition & 1 deletion core/otplease/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "otplease.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/package-graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/prompt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/validation-error/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "validation-error.js",
"engines": {
"node": ">= 10.18.0"
"node": "^14.19.3 || >=16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 5b2228f

Please sign in to comment.