Skip to content
Eugene Lazutkin edited this page Jun 11, 2026 · 18 revisions

Dashboard

Node.js CI NPM version

About

This is a no-dependency micro helper for developers of binary addons for Node. It is literally two small one-file utilities integrated with GitHub releases. The project solves two problems:

  • save-to-github-cache saves a binary artifact to a Github release according to the platform, architecture, and Node ABI (or N-API level). Designed to be used with GitHub actions.
  • install-from-cache retrieves a previously saved artifact, tests if it works properly, and rebuilds a project from sources in the case of failure.

In general, it can save your users from a long recompilation and, in some cases, even save them from installing build tools. By using GitHub facilities (Releases and Actions) the whole process of publishing and subsequent installations are secure, transparent, painless, inexpensive, or even free for public repositories.

NPM 12 and install scripts

Starting with npm 12 (July 2026), npm does not run dependency lifecycle scripts by default β€” and this helper runs as the consuming addon's install script. End users have to approve the addon once (npm approve-scripts <addon>); otherwise neither the prebuilt download nor the node-gyp fallback runs. See NPM 12 and install scripts for the full story.

Search

πŸ” Search the wiki β€” full-text search over every page (titles and body text).

The link opens GitHub's search with the box already filled in as repo:uhop/install-artifact-from-github and the Wikis tab selected. Type your terms after the existing text β€” e.g. repo:uhop/install-artifact-from-github DOWNLOAD_HOST. Keep the repo:uhop/install-artifact-from-github part β€” it scopes the search to this wiki; deleting it searches all of GitHub instead. Search is case-insensitive; wrap multi-word phrases in quotes.

Documentation

Reference

  • Install from cache β€” the consumer-side utility: flags, environment variables, the asset URL format, npm parameters.
  • Save to GitHub cache β€” the CI-side utility: flags, compression formats, a GitHub Actions workflow example.

Guides

Project

  • Release notes β€” the full release history with dates.
  • Why??? β€” the motivation for this project.

Supported Node versions

We support all currently active Node versions. As of writing (June 2026) these are 22, 24 (LTS) and 26 (current). The package declares engines.node": ">=18" since 1.5.0; older Node will refuse to install (or emit an EBADENGINE warning).

Clone this wiki locally