Skip to content

Commit

Permalink
Bump node version update to v20 (#2184)
Browse files Browse the repository at this point in the history
When updating node to v20 in
#2178 I forgot to bump
the node update job to use v20 instead of v18.
  • Loading branch information
nmattia authored Jan 9, 2024
1 parent 2aeb747 commit a426c29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
current_node_version=$(cat ./.node-version)
echo "current node version '$current_node_version'"
# We look for the last released version that starts with "prefix", and then drop the
# "v" prefix (which .node-version doesn't use)
# We look for the last released version that starts with the currently used major
# version, and then drop the "v" prefix (which .node-version doesn't use)
latest_node_version=$(curl -sSl https://nodejs.org/download/release/index.json \
| jq -cMr --arg prefix v18 \
| jq -cMr --arg prefix "v${current_node_version%%.*}" \
'sort_by(.data) | [.[] | select(.lts) | select(.version | startswith($prefix))][0] | .version | sub("^v"; "")')
echo "latest node version '$latest_node_version'"
Expand Down

0 comments on commit a426c29

Please sign in to comment.