mirror of
https://github.com/actions/setup-node.git
synced 2026-11-04 05:56:29 +03:00
* fix: avoid GitHub API rate limits for the Node manifest Large job matrices exhaust the shared GITHUB_TOKEN rate limit because each cold manifest lookup resolves a repository tree and blob through the REST API. Use the fixed raw manifest and reuse it within a job. check-latest always refreshes it, and the authenticated API remains a fallback. * fix: preserve check-latest manifest freshness Raw manifest responses can remain cached for five minutes, so check-latest keeps the GitHub API path while normal setup steps reuse the job manifest. * fix(manifest): use authenticated API with raw fallback LTS resolution with check-latest cannot recover from API failures because it bypasses raw retrieval. The disk cache cannot reduce requests across matrix jobs and introduces unneeded state.
Files located in data directory are used only for testing purposes.
Here the list of files in the data directory
.nvmrc,.tools-versionsandpackage.jsonare used to test node-version-file logicpackage-lock.json,pnpm-lock.yamlandyarn.lockare used to test cache logicversions-manifest.jsonis used for unit testing to check downloading Node.js versions from the node-versions repository.node-dist-index.jsonis used for unit testing to check downloading Node.js versions from the official site. The file was constructed from https://nodejs.org/dist/index.jsonnode-rc-index.jsonis used for unit testing to check downloading Node.js rc versions from the official site. The file was constructed from https://nodejs.org/download/rc/index.jsonnode-nightly-index.jsonis used for unit testing to check downloading Node.js nightly builds from the official site. The file was constructed from https://nodejs.org/download/nightly/index.json