From 9dba51fecd815995a651f56d350e7c4caadd09be Mon Sep 17 00:00:00 2001 From: Kouadio Fabrice N'guessan Date: Mon, 6 Nov 2023 11:25:31 +0000 Subject: [PATCH] chore: drop support for Node 16 --- .github/workflows/node.js.yml | 26 ++++++++++++++++++++++++++ README.md | 4 +++- package.json | 3 +++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..a58b2a2 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,26 @@ +name: Node.js CI + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm ci + - run: npm run build --if-present + - run: npm test diff --git a/README.md b/README.md index da0c7f9..6c4d5dd 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ I personally created this project to analyze npm packages by various criteria (p ## Requirements -- [Node.js](https://nodejs.org/en/) v16 or higher +- [Node.js](https://nodejs.org/en/) v18 or higher ## Getting Started @@ -97,7 +97,9 @@ The root folder **"example"** contains real world examples that are used (for js ## Contributors ✨ + [![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-) + Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): diff --git a/package.json b/package.json index e74df26..7705541 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,9 @@ "exports": "./dist/index.js", "types": "./dist/index.d.ts", "type": "module", + "engines": { + "node": ">=18.0.0" + }, "bin": { "nsf": "./dist/bin/index.js" },