Skip to content

Commit a5ea21e

Browse files
committed
ci: pin pnpm@11 and use pnpm 11's 'pnpm link --global .' syntax
1 parent 711caf6 commit a5ea21e

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/backend-tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- uses: pnpm/action-setup@v6
3939
name: Install pnpm
4040
with:
41+
version: 11
4142
run_install: false
4243
-
4344
uses: actions/setup-node@v6
@@ -49,7 +50,7 @@ jobs:
4950
run: |
5051
cd ./etherpad
5152
./bin/installDeps.sh
52-
pnpm link --global
53+
pnpm link --global .
5354
-
5455
name: Prepare plugin
5556
run: |
@@ -59,11 +60,11 @@ jobs:
5960
echo "PLUGIN_NAME=$PLUGIN_NAME" >> $GITHUB_ENV
6061
pnpm install
6162
pnpm build
62-
pnpm link --global
63+
pnpm link --global .
6364
- name: Link plugin to Etherpad
6465
run: |
6566
cd ./etherpad/src
66-
pnpm link "$PLUGIN_NAME"
67+
pnpm link --global "$PLUGIN_NAME"
6768
-
6869
name: Remove core tests so only the client is tested
6970
run: rm -rf ./etherpad/src/tests/backend/specs

.github/workflows/npmpublish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@ jobs:
3636
- uses: pnpm/action-setup@v6
3737
name: Install pnpm
3838
with:
39+
version: 11
3940
run_install: false
4041
-
4142
uses: actions/setup-node@v6
4243
with:
4344
node-version: 24
4445
cache: pnpm
4546
-
46-
run: cd ../etherpad-lite && ./bin/installDeps.sh && pnpm link --global
47+
run: cd ../etherpad-lite && ./bin/installDeps.sh && pnpm link --global .
4748
-
4849
run: |
4950
pnpm config set auto-install-peers false
@@ -82,6 +83,7 @@ jobs:
8283
- uses: pnpm/action-setup@v6
8384
name: Install pnpm
8485
with:
86+
version: 11
8587
run_install: false
8688
-
8789
uses: actions/setup-node@v6

0 commit comments

Comments
 (0)