diff --git a/README.md b/README.md index 14251f3..f7c3bb4 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,11 @@ GitHub Action to download and setup the func CLI. Automatically detects OS and a version: 'v1.20.0' # optional - uses latest as default ``` +## Requirements + +The action runs on Node.js 24, so it needs GitHub Actions runner v2.327.1 or +newer. GitHub-hosted runners have it; self-hosted runners may need an update. + ## Inputs | Input | Description | Default | diff --git a/action.yml b/action.yml index 7c23dd5..3f7ccbb 100644 --- a/action.yml +++ b/action.yml @@ -14,5 +14,5 @@ inputs: binarySubpath: description: '(optional) Path of the binary inside a tar.gz binarySource, e.g. "bin/func". Required when the download is a tar.gz' runs: - using: 'node20' + using: 'node24' main: 'index.js' diff --git a/package-lock.json b/package-lock.json index 86bec83..82fd83b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,9 @@ "dependencies": { "@actions/core": "~1.11.1", "@actions/exec": "~1.1.1" + }, + "engines": { + "node": ">=24" } }, "node_modules/@actions/core": { diff --git a/package.json b/package.json index 994bb98..41b9837 100644 --- a/package.json +++ b/package.json @@ -5,5 +5,8 @@ "dependencies": { "@actions/core": "~1.11.1", "@actions/exec": "~1.1.1" + }, + "engines": { + "node": ">=24" } }