npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

install-release-action

v1.3.0

Published

GitHub action for downloading, extracting, caching an executable from a GitHub release and putting it to PATH.

Downloads

13

Readme

Install Released Tool

Latest version Dependency status

GitHub action for downloading, extracting, caching an executable from a GitHub release and putting it to PATH.

  • Simple syntax with defaults according to the best performance and practices.
  • Convenient version specification - latest or X.Y.Z or any semantic version specification.
  • An already unpacked version is cached to speed up the build pipeline.
  • GitHub workflow token is used by default.

Usage

Install jsonlint from the most recent release:

- uses: prantlf/install-release-action@v1
  with:
    repo: prantlf/v-jsonlint

Install jsonlint from the compatible patch release recent release:

- uses: prantlf/install-release-action@v1
  with:
    repo: prantlf/v-jsonlint
    version: ~0.0.1

The archive with the executable is expected to be:

{name}-{platform}-{architecture}.zip

where:

  • {name} is the name of the tool (executable)
  • {platform} is the name of the target platform: linux, macos or windows
  • {architecture} is the name of the target architecture: aarch64 or arm64 (64-bit ARM), riscv64 (RISC-V), amd64, x86_64, x64 (64-bit AMD) or x86 (32-bit Intel)

Inputs

The following parameters can be specified using the with object:

repo

Type: String

Specify the repository in the form owner/name to download the archive with the executable from. Mandatory.

version

Type: String Default: latest

Specify the version of the executable to download and extract. It can be latest (the latest published semantic version), or a semantic version number, plain or in the form of a git tag (usually vX.Y.Z, but sometimes only X.Y.Z), or any semantic version specification.

name

Type: String Default: (inferred from platform archives)

Specify the name prefix of the archive to download and the name of the the executable to extract from it. If not specified, the first archive named {name}-{platform}-{architecture}.zip will be picked and the prefix name will be used.

platforms

Type: Map{String, String[]} Default:

darwin:macos
linux:
win32:windows

A map where keys are Node.js platforms and values are their aliases which will be recognised in names of the installation archives. The Node.js platform name itself doesn't have to be included in the aliases. This input is a multi-line string, where each line is a map entry. The kay is separated from the value by colon (:). Aliases are separated by commas (,).

architectures

Type: Map{String, String[]} Default:

  arm64:aarch64
  riscv64:
  x64:amd64,x86_64,x86

A map where keys are Node.js architectures and values are their aliases which will be recognised in names of the installation archives. The Node.js architectures name itself doesn't have to be included in the aliases. This input is a multi-line string, where each line is a map entry. The kay is separated from the value by colon (:). Aliases are separated by commas (,).

use-cache

Type: Boolean Default: true

Set to false to ignore the cache and always perform the full installation by downloading and unpacking a binary.

token

Type: String Default: ${{ github.token }}

Authorization token to inspect releases and commits in the {repo} repository. Either a GitHub personal access token or the GitHub workflow token. If not provided, the environment variable GITHUB_TOKEN will be used as a fallback. And if even that is not set, the GitHub workflow token from the action-execution context will be used as default.

Outputs

The following parameters can be accessed by the github context:

version

Type: String

The actually installed version of the executable, as returned by {executable} -V., for example: 1.0.0.

bin-path

Type: String

The complete path to the directory with the extracted.

exe-path

Type: String

The complete path to the extracted executable.

used-cache

Type: Boolean

A boolean value indicating if the installation succeeded from the cache.

License

Copyright (C) 2023-2024 Ferdinand Prantl

Licensed under the MIT License.