Skip to content

Commit 35b3610

Browse files
committed
Updated node.
1 parent dd45a64 commit 35b3610

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

.github/workflows/backend-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ jobs:
4545
-
4646
uses: actions/setup-node@v3
4747
with:
48-
node-version: 12
48+
node-version: 20
4949
cache: 'npm'
5050
cache-dependency-path: |
5151
src/package-lock.json
5252
src/bin/doc/package-lock.json
5353
node_modules/${{ steps.plugin_name.outputs.plugin_name }}/package-lock.json
54+
- run: npm install [email protected] -g
55+
name: Install legacy npm for correct dependency resolution
5456
-
5557
name: Install plugin dependencies
5658
run: |

.github/workflows/frontend-tests.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,9 @@ on: [push]
77
jobs:
88
test:
99
runs-on: ubuntu-latest
10+
if: ${{ github.actor != 'dependabot[bot]' }}
1011

1112
steps:
12-
-
13-
name: Fail if Dependabot
14-
if: github.actor == 'dependabot[bot]'
15-
run: |
16-
cat <<EOF >&2
17-
Frontend tests skipped because Dependabot can't access secrets.
18-
Manually re-run the jobs to run the frontend tests.
19-
For more information, see:
20-
https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
21-
EOF
22-
exit 1
2313
-
2414
name: Generate Sauce Labs strings
2515
id: sauce_strings
@@ -34,11 +24,13 @@ jobs:
3424
-
3525
uses: actions/setup-node@v3
3626
with:
37-
node-version: 12
27+
node-version: 20
3828
cache: 'npm'
3929
cache-dependency-path: |
4030
src/package-lock.json
4131
src/bin/doc/package-lock.json
32+
- run: npm install [email protected] -g
33+
name: Install legacy npm for correct dependency resolution
4234
-
4335
name: Check out the plugin
4436
uses: actions/checkout@v3

.github/workflows/npmpublish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ jobs:
4242
-
4343
uses: actions/setup-node@v3
4444
with:
45-
node-version: 12
45+
node-version: 20
4646
cache: 'npm'
4747
cache-dependency-path: |
4848
node_modules/ep_etherpad-lite/package-lock.json
4949
node_modules/ep_etherpad-lite/bin/doc/package-lock.json
5050
package-lock.json
51+
- run: npm install [email protected] -g
52+
name: Install legacy npm for correct dependency resolution
5153
# All of ep_etherpad-lite's devDependencies are installed because the
5254
# plugin might do `require('ep_etherpad-lite/node_modules/${devDep}')`.
5355
# Eventually it would be nice to create an ESLint plugin that prohibits
@@ -83,9 +85,11 @@ jobs:
8385
-
8486
uses: actions/setup-node@v3
8587
with:
86-
node-version: 12
88+
node-version: 20
8789
registry-url: https://registry.npmjs.org/
8890
cache: 'npm'
91+
- run: npm install [email protected] -g
92+
name: Install legacy npm for correct dependency resolution
8993
-
9094
name: Bump version (patch)
9195
run: |

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.cache.json
22
.ep_initialized
33
node_modules
4-
node_modules/
4+
node_modules/
5+
.idea

0 commit comments

Comments
 (0)