Fixed windows script.

This commit is contained in:
SamTV12345 2024-02-10 14:49:30 +01:00
parent 269f171434
commit d5063aeb48
6 changed files with 21 additions and 7 deletions

View file

@ -76,6 +76,22 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
-
name: Install libreoffice
run: |
@ -87,7 +103,7 @@ jobs:
# The --legacy-peer-deps flag is required to work around a bug in npm v7:
# https://github.com/npm/cli/issues/2199
run: >
npm install --no-save --legacy-peer-deps
pnpm install --no-save
ep_align
ep_author_hover
ep_cursortrace

View file

@ -39,7 +39,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- uses: pnpm/action-setup@v3
name: Install pnpm
with:

View file

@ -26,7 +26,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 21
cache: 'npm'
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
@ -99,7 +98,7 @@ jobs:
# The --legacy-peer-deps flag is required to work around a bug in npm v7:
# https://github.com/npm/cli/issues/2199
run: >
npm install --no-save --legacy-peer-deps
pnpm install
ep_align
ep_author_hover
ep_cursortrace

View file

@ -73,7 +73,7 @@ jobs:
# The --legacy-peer-deps flag is required to work around a bug in npm v7:
# https://github.com/npm/cli/issues/2199
run: >
npm install --no-save --legacy-peer-deps
pnpm install --no-save
ep_align
ep_author_hover
ep_cursortrace

View file

@ -50,7 +50,7 @@ jobs:
# The --legacy-peer-deps flag is required to work around a bug in npm
# v7: https://github.com/npm/cli/issues/2199
run: >
pnpm install --no-save --legacy-peer-deps
pnpm install --no-save
ep_align
ep_author_hover
ep_cursortrace

View file

@ -14,7 +14,7 @@ cd /D node_modules
mklink /D "ep_etherpad-lite" "..\src"
cd /D "ep_etherpad-lite"
cmd /C npm ci --legacy-peer-deps || exit /B 1
cmd /C pnpm i || exit /B 1
cd /D "%~dp0\..\.."