diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index c3bb26f..95f96c5 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -44,7 +44,7 @@ jobs: PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }} - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 cache: 'npm' cache-dependency-path: | src/package-lock.json diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index a1ca7e5..439a60c 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -23,7 +23,7 @@ jobs: repository: ether/etherpad-lite - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 cache: 'npm' cache-dependency-path: | src/package-lock.json diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index beeaeae..3e99291 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 @@ -119,4 +121,4 @@ jobs: name: Add package to etherpad organization run: npm access grant read-write etherpad:developers env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} \ No newline at end of file + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}