fix pnpm install

This commit is contained in:
xfy
2024-05-22 11:50:08 +08:00
parent fb740f3be9
commit c27d33e26c

View File

@ -5,11 +5,7 @@ image: 'node:latest'
before_script:
- apt update -y
- if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi
- corepack enable pnpm
- mkdir public
build:pretty-check: