chore: use Node.js 14 (LTS) for driver (#8965)
This commit is contained in:
parent
5689d9bc24
commit
abc989eb3e
|
|
@ -4,6 +4,7 @@ set -x
|
|||
|
||||
trap "cd $(pwd -P)" EXIT
|
||||
SCRIPT_PATH="$(cd "$(dirname "$0")" ; pwd -P)"
|
||||
NODE_VERSION="14.17.6"
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
PACKAGE_VERSION=$(node -p "require('../../package.json').version")
|
||||
|
|
@ -22,7 +23,7 @@ function build {
|
|||
SUFFIX=$2
|
||||
ARCHIVE=$3
|
||||
RUN_DRIVER=$4
|
||||
NODE_URL=https://nodejs.org/dist/v12.20.1/${NODE_DIR}.${ARCHIVE}
|
||||
NODE_URL=https://nodejs.org/dist/v${NODE_VERSION}/${NODE_DIR}.${ARCHIVE}
|
||||
|
||||
echo "Building playwright-${PACKAGE_VERSION}-${SUFFIX}"
|
||||
|
||||
|
|
@ -69,7 +70,7 @@ function build {
|
|||
zip -q -r ../playwright-${PACKAGE_VERSION}-${SUFFIX}.zip .
|
||||
}
|
||||
|
||||
build "node-v12.20.1-darwin-x64" "mac" "tar.gz" "run-driver-posix.sh"
|
||||
build "node-v12.20.1-linux-x64" "linux" "tar.gz" "run-driver-posix.sh"
|
||||
build "node-v12.20.1-win-x64" "win32_x64" "zip" "run-driver-win.cmd"
|
||||
build "node-v12.20.1-win-x86" "win32" "zip" "run-driver-win.cmd"
|
||||
build "node-v${NODE_VERSION}-darwin-x64" "mac" "tar.gz" "run-driver-posix.sh"
|
||||
build "node-v${NODE_VERSION}-linux-x64" "linux" "tar.gz" "run-driver-posix.sh"
|
||||
build "node-v${NODE_VERSION}-win-x64" "win32_x64" "zip" "run-driver-win.cmd"
|
||||
build "node-v${NODE_VERSION}-win-x86" "win32" "zip" "run-driver-win.cmd"
|
||||
|
|
|
|||
Loading…
Reference in a new issue