Skip to content

Commit

Permalink
chore(nodejs)!: deprecate node 12.x, 14.x and 16.x
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Now we will no longer support old nodejs versions
  • Loading branch information
H4ad committed Jun 7, 2023
1 parent 95645e0 commit 4c734d4
Show file tree
Hide file tree
Showing 10 changed files with 1,543 additions and 372 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-18-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-node-18-
- name: Install Lib Dependencies
run: npm ci
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [ 12.x, 14.x, 16.x, 18.x ]
node-version: [ 18.x, 20.x ]

steps:
- uses: actions/checkout@v3
Expand All @@ -18,13 +18,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Update NPM Version On NodeJS 12
run: npm i -g [email protected]
if: matrix.node-version == '12.x'

- name: Update NPM Version
run: npm i -g npm
if: matrix.node-version != '12.x'

- name: Cache dependencies
uses: actions/cache@v2
Expand All @@ -40,10 +35,6 @@ jobs:
- name: Build
run: npm run build --if-present

- name: Override Packages Versions for NodeJS 12.x
if: matrix.node-version == '12.x'
run: echo "TEST_NODE_VERSION=12.x" >> $GITHUB_ENV

- name: Run tests
run: npm test

Expand All @@ -56,18 +47,18 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js 16
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-16.x-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-18.x-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-16.x-
${{ runner.os }}-node-18.x-
- name: Install Lib Dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs lts-gallium
nodejs lts
Loading

0 comments on commit 4c734d4

Please sign in to comment.