From 7bf092d87edbd092ded8dc72c1945a96e81a9719 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sat, 14 Oct 2023 20:35:01 +0200 Subject: [PATCH] Updated to node 20 --- .github/workflows/backend-tests.yml | 4 +++- .github/workflows/frontend-tests.yml | 4 +++- .github/workflows/npmpublish.yml | 8 ++++++-- .gitignore | 1 + 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index b80f570..0d47a43 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -45,12 +45,14 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 20 cache: 'npm' cache-dependency-path: | src/package-lock.json src/bin/doc/package-lock.json node_modules/${{ steps.plugin_name.outputs.plugin_name }}/package-lock.json + - run: npm install npm@6.14.18 -g + name: Install legacy npm for correct dependency resolution - name: Install plugin dependencies run: | diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index 8491ec3..69a7e6a 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -34,11 +34,13 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 20 cache: 'npm' cache-dependency-path: | src/package-lock.json src/bin/doc/package-lock.json + - run: npm install npm@6.14.18 -g + name: Install legacy npm for correct dependency resolution - name: Check out the plugin uses: actions/checkout@v3 diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index d9dfb3f..ae88186 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -42,12 +42,14 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 20 cache: 'npm' cache-dependency-path: | node_modules/ep_etherpad-lite/package-lock.json node_modules/ep_etherpad-lite/bin/doc/package-lock.json package-lock.json + - run: npm install npm@6.14.18 -g + name: Install legacy npm for correct dependency resolution # All of ep_etherpad-lite's devDependencies are installed because the # plugin might do `require('ep_etherpad-lite/node_modules/${devDep}')`. # Eventually it would be nice to create an ESLint plugin that prohibits @@ -83,9 +85,11 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 20 registry-url: https://registry.npmjs.org/ cache: 'npm' + - run: npm install npm@6.14.18 -g + name: Install legacy npm for correct dependency resolution - name: Bump version (patch) run: | diff --git a/.gitignore b/.gitignore index cd72a91..f6edaca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .ep_initialized node_modules/ +.idea