Skip to content

Commit 2d6827f

Browse files
committed
build: align node version with nx compatibility matrix (#530)
Nx has a NodeJS and TypeScript Compatibility Matrix. We are dropping the multiple NodeJS support versions. From now on, we will align to the NodeJs Compatibility Matrix BREAKING CHANGE: drop support to node V16
1 parent 7c14884 commit 2d6827f

File tree

11 files changed

+65
-114
lines changed

11 files changed

+65
-114
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
name: Setup
22
description: Setup Node.js, cache and install dependencies
3-
inputs:
4-
node-version:
5-
description: Node.js version
6-
required: false
7-
default: '16'
83
runs:
94
using: composite
105
steps:
@@ -15,8 +10,8 @@ runs:
1510
- name: Use Node.js
1611
uses: actions/setup-node@v3
1712
with:
13+
node-version-file: '.nvmrc'
1814
cache: 'npm'
19-
node-version: ${{ inputs.node-version }}
2015
# This doesn't just set the registry url, but also sets
2116
# the right configuration in .npmrc that reads NPM token
2217
# from NPM_AUTH_TOKEN environment variable.

.github/workflows/angular-e2e-test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@ on: workflow_call
55
jobs:
66
angular-e2e-test:
77
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
node-version: [16, 18]
118
steps:
129
- uses: actions/checkout@v3
1310
with:
1411
fetch-depth: 0
1512
- uses: ./.github/actions/setup
16-
with:
17-
node-version: ${{ matrix.node-version }}
1813

1914
- uses: ./.github/actions/download-build
2015

.github/workflows/basic-test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,17 @@ jobs:
5151
unit-test:
5252
strategy:
5353
matrix:
54-
node-version: [16, 18]
5554
os: [ubuntu-latest, windows-latest]
5655
runs-on: ${{ matrix.os }}
5756
steps:
5857
- uses: actions/checkout@v3
5958
with:
6059
fetch-depth: 0
6160
- uses: ./.github/actions/setup
62-
with:
63-
node-version: ${{ matrix.node-version }}
6461

6562
- run: npx nx test --code-coverage
6663

67-
- if: matrix.node-version == 18 && inputs.reports == true
68-
name: Archive coverage report
64+
- name: Archive coverage report
6965
uses: actions/upload-artifact@v3
7066
with:
7167
name: ngx-deploy-npm-coverage-report-${{ github.sha }}

.github/workflows/e2e-test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ jobs:
66
e2e-test:
77
strategy:
88
matrix:
9-
node-version: [16, 18]
109
os: [ubuntu-latest, windows-latest]
1110
runs-on: ${{ matrix.os }}
1211
steps:
1312
- uses: actions/checkout@v3
1413
with:
1514
fetch-depth: 0
1615
- uses: ./.github/actions/setup
17-
with:
18-
node-version: ${{ matrix.node-version }}
1916

2017
- run: npx nx e2e ngx-deploy-npm-e2e

.github/workflows/integration-test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@ on: workflow_call
55
jobs:
66
integration-test:
77
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
node-version: [16, 18]
118
steps:
129
- uses: actions/checkout@v3
1310
with:
1411
fetch-depth: 0
1512
- uses: ./.github/actions/setup
16-
with:
17-
node-version: ${{ matrix.node-version }}
1813

1914
- name: Integration Test
2015
run: npx nx e2e ngx-deploy-npm-e2e --jestConfig e2e/ngx-deploy-npm-e2e/jest.integration.config.js

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ngx-deploy-npm 🚀 <!-- omit in toc -->
22

3-
![Node version][supported-node-versions]
3+
<!-- [![Nx supported versions][supported-nx-versions]][nx-url] -->
4+
45
[![NPM version][npm-image]][npm-url]
56
[![NPM donwoads][downloads-image]][npm-url]
67
[![The MIT License][mit-licence-image]][mit-licence-url]
@@ -24,7 +25,7 @@
2425
[![Next JS][next-js-image]][next-js-link]
2526
[![Node][node-image]][node-link]
2627
[![JS][js-image]][js-link]
27-
[![Nx Plugin][nx-image]][nx-link]
28+
[![Nx Plugin][nx-image]][nx-plugin-link]
2829
[![React][react-image]][react-link]
2930
[![React Native][react-native-image]][react-native-link]
3031

@@ -38,7 +39,7 @@
3839
[mit-licence-image]: https://img.shields.io/badge/license-MIT-orange.svg?color=blue&style=flat
3940
[conventional-commits-image]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
4041
[downloads-image]: https://img.shields.io/npm/dm/ngx-deploy-npm
41-
[supported-node-versions]: https://img.shields.io/badge/node-v16%20v18-green
42+
[supported-nx-versions]: https://img.shields.io/badge/nx%20supported%20versions-v16-143055
4243
[next-tests-image]: https://github.com/bikecoders/ngx-deploy-npm/actions/workflows/test-nx-next.yml/badge.svg
4344
[linux-image]: https://img.shields.io/badge/Linux-FCC624?style=flat&logo=linux&logoColor=black
4445
[macos-image]: https://img.shields.io/badge/mac%20os-000000?style=flat&logo=macos&logoColor=F0F0F0
@@ -63,6 +64,7 @@
6364
[mit-licence-url]: http://opensource.org/licenses/MIT
6465
[conventional-commits-url]: https://conventionalcommits.org
6566
[next-tests-link]: https://github.com/bikecoders/ngx-deploy-npm/actions/workflows/test-nx-next.yml
67+
[nx-url]: https://nx.dev/
6668

6769
<!-- Projects -->
6870

@@ -71,7 +73,7 @@
7173
[next-js-link]: https://nx.dev/packages/next
7274
[node-link]: https://nx.dev/packages/node
7375
[js-link]: https://nx.dev/packages/js
74-
[nx-link]: https://nx.dev/packages/nx-plugin
76+
[nx-plugin-link]: https://nx.dev/packages/nx-plugin
7577
[react-link]: https://nx.dev/packages/react
7678
[react-native-link]: https://nx.dev/packages/react-native
7779

migrations.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

package-lock.json

Lines changed: 54 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)