mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Add support for pnpm in playwright-common screenshot script
This commit is contained in:
parent
cb27334d3d
commit
5f7b56a89f
@ -14,7 +14,12 @@ build_image() {
|
||||
echo "Building $IMAGE_NAME image in $SCRIPT_DIR"
|
||||
|
||||
# Check the playwright version
|
||||
PW_VERSION=$(yarn list --pattern @playwright/test --depth=0 --json --non-interactive --no-progress | jq -r '.data.trees[].name | split("@") | last')
|
||||
PM=$(cat package.json | jq -r '.packageManager')
|
||||
if [[ $PM == "pnpm@"* ]]; then
|
||||
PW_VERSION=$(pnpm list @playwright/test --depth=0 --json | jq -r '.[].devDependencies["@playwright/test"].version')
|
||||
else
|
||||
PW_VERSION=$(yarn list --pattern @playwright/test --depth=0 --json --non-interactive --no-progress | jq -r '.data.trees[].name | split("@") | last')
|
||||
fi
|
||||
echo "with Playwright version $PW_VERSION"
|
||||
|
||||
# Build image
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user