From 58258c31eeca4134253f9f04ceaaffa7275218a2 Mon Sep 17 00:00:00 2001 From: AHMAD KADRI <52747422+ahmadkadri@users.noreply.github.com> Date: Tue, 10 Dec 2024 09:37:03 +0100 Subject: [PATCH] Make CI use Node version from package.json (#717) * CI use Node version from package.json Signed-off-by: Ahmad Kadri * fix the path Signed-off-by: Ahmad Kadri * fix the path overall Signed-off-by: Ahmad Kadri * add engines to root pacakge.json Signed-off-by: Ahmad Kadri * fix the path Signed-off-by: Ahmad Kadri * fix the path in all places Signed-off-by: Ahmad Kadri * fix the path in all places to the right path Signed-off-by: Ahmad Kadri * fix the path Signed-off-by: Ahmad Kadri --------- Signed-off-by: Ahmad Kadri --- .github/workflows/ci.yml | 8 ++++---- package.json | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 132f0a4d..e1f9d450 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: '20' + node-version-file: 'package.json' cache: 'yarn' - name: yarn install @@ -104,7 +104,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: '20' + node-version-file: 'matrix-meetings-bot/package.json' cache: 'yarn' - name: yarn install @@ -200,7 +200,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: '20' + node-version-file: 'package.json' cache: 'yarn' - name: yarn install @@ -237,7 +237,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: '20' + node-version-file: 'package.json' cache: 'yarn' - name: yarn install diff --git a/package.json b/package.json index 9daad149..fdf7c15e 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,10 @@ "prettier-plugin-organize-imports": "^4.1.0", "yarn-deduplicate": "^6.0.2" }, + "engines": { + "node": ">=20", + "yarn": ">=1.22.1 <2.0.0" + }, "scripts": { "start": "yarn workspace @nordeck/matrix-meetings-widget start", "dev": "yarn workspace @nordeck/matrix-meetings-widget dev",