mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: auto roll Node.js version of driver follow-up
This commit is contained in:
parent
9110d64917
commit
02ed5b4cd6
@ -4,7 +4,7 @@ set -x
|
||||
|
||||
trap "cd $(pwd -P)" EXIT
|
||||
SCRIPT_PATH="$(cd "$(dirname "$0")" ; pwd -P)"
|
||||
NODE_VERSION="16.13.0" # autogenerated via ./update-playwright-driver-version.mjs""""""
|
||||
NODE_VERSION="16.13.0" # autogenerated via ./update-playwright-driver-version.mjs
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
PACKAGE_VERSION=$(node -p "require('../../package.json').version")
|
||||
|
@ -44,6 +44,6 @@ function getLatestNodeJsVersion() {
|
||||
function refreshBuildScriptVersionNumber(newNodeJsVersion, buildScriptPath) {
|
||||
const replacementRegex = new RegExp(`(NODE_VERSION=")(.*)(" # autogenerated via \\.\/${path.basename(currentFilePath).replace('.', '\\.')})`);
|
||||
let buildFile = fs.readFileSync(buildFilePath, 'utf8');
|
||||
buildFile = buildFile.replace(replacementRegex, `$1${latestNodeJsLts}$3"`);
|
||||
buildFile = buildFile.replace(replacementRegex, `$1${latestNodeJsLts}$3`);
|
||||
fs.writeFileSync(buildFilePath, buildFile);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user