From 28ba6dbb6ffde22523564fa76391af6863e92970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20V=C3=A1squez?= Date: Tue, 20 Feb 2024 20:43:41 -0600 Subject: [PATCH] Use Node.js v20 (#437) * Use Node.js v20 * Update Node.js CI --- .github/workflows/{current-rails-app.yml => tests.yml} | 6 +++--- .tool-versions | 1 + package-lock.json | 3 +++ package.json | 3 +++ 4 files changed, 10 insertions(+), 3 deletions(-) rename .github/workflows/{current-rails-app.yml => tests.yml} (93%) create mode 100644 .tool-versions diff --git a/.github/workflows/current-rails-app.yml b/.github/workflows/tests.yml similarity index 93% rename from .github/workflows/current-rails-app.yml rename to .github/workflows/tests.yml index c2ac79b1..3bdb0251 100644 --- a/.github/workflows/current-rails-app.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: current rails application +name: tests on: push: branches: @@ -27,12 +27,12 @@ jobs: steps: - name: Checkout 🏗 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js 🏗 uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 20 - name: Install Node.js ⌨ run: npm install diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..99f4ccb8 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 20.8.0 diff --git a/package-lock.json b/package-lock.json index 889486de..ca8aa5c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,9 @@ "devDependencies": { "vite": "^4.3.0", "vite-plugin-ruby": "^3.2.0" + }, + "engines": { + "node": ">=20.0.0" } }, "node_modules/@esbuild/linux-x64": { diff --git a/package.json b/package.json index 333b35d2..29f33a5c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,9 @@ { "name": "doctors", "private": true, + "engines": { + "node": ">=20.0.0" + }, "dependencies": { "@fortawesome/fontawesome-free": "^6.4.2" },