We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 793fc58 commit 60e25c3Copy full SHA for 60e25c3
.github/workflows/get-supported-node-versions.yml
@@ -18,11 +18,16 @@ jobs:
18
- name: Get supported Node.js versions
19
id: get_versions
20
run: |
21
+ # Look for versions that are:
22
+ # - Currently supported
23
+ # - That are LTS
24
+ # - Within LTS date range (i.e. not future LTS)
25
NODE_VERSIONS=$(curl --silent https://raw.githubusercontent.com/nodejs/Release/main/schedule.json | jq --compact-output '
26
def today: now | strftime("%Y-%m-%d");
27
to_entries
- | map(select(.value.end > today))
28
+ | map(select(.value.end > today and .value.lts != null and .value.lts < today))
29
| [.[0].key, .[-1].key]
30
+ | unique
31
')
32
33
echo "node-versions=${NODE_VERSIONS}" >> ${GITHUB_OUTPUT}
0 commit comments