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 6e1b2f8..a684bdc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .cache.json .ep_initialized node_modules -node_modules/ \ No newline at end of file +node_modules/ +.idea