Skip to content

Commit dd36ca7

Browse files
authored
W-19318515 fix: update to 20.19.4, add install to update script (#3351)
* Update to 20.19.4, add install to update script * add node update script to create-release-pr
1 parent b79f2c9 commit dd36ca7

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 20.19.1
1+
nodejs 20.19.4

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
},
345345
"update": {
346346
"node": {
347-
"version": "20.19.1"
347+
"version": "20.19.4"
348348
},
349349
"s3": {
350350
"xz": true,

scripts/create-release-pr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ BRANCH_NAME="release-$(date +%s)"
3535
echo "Creating git branch ${BRANCH_NAME}"
3636
git checkout -b "${BRANCH_NAME}"
3737

38+
echo "Updating Node.js version to latest..."
39+
scripts/update-node-version-to-latest
40+
echo "Done updating Node.js version"
41+
3842
echo "Installing dependencies with yarn..."
3943
yarn
4044
echo "Done installing dependencies with yarn"

scripts/update-node-version-to-latest

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ else
1919
echo "nodejs $version" >> .tool-versions
2020
fi
2121

22+
# Install the Node.js version via asdf to ensure it's available
23+
echo "Installing Node.js version $version via asdf..."
24+
if asdf install nodejs "$version"; then
25+
echo "Successfully installed Node.js version $version"
26+
else
27+
echo "Warning: Failed to install Node.js version $version via asdf" >&2
28+
echo "Continuing with package.json update..." >&2
29+
fi
30+
2231
# Update the Node.js version in package.json's oclif update configuration
2332
# Using node to update the JSON file correctly
2433
node -e "

0 commit comments

Comments
 (0)