Rearranged the code and added CLI that installs tools locally.
All checks were successful
Test Action / test (push) Successful in 3s

This commit is contained in:
2026-01-11 10:54:25 +01:00
parent ef971a6da4
commit 620da93338
12 changed files with 559 additions and 188 deletions

View File

@@ -1,10 +1,15 @@
{
"name": "setup-github-release",
"name": "install-github-release",
"version": "1.0.0",
"description": "A GitHub Action to download a tool",
"description": "A GitHub Action and CLI tool to download and install binaries from GitHub releases",
"main": "dist/index.js",
"bin": {
"install-github-release": "dist/cli.js"
},
"scripts": {
"build": "esbuild src/index.ts --bundle --platform=node --target=node24 --outfile=dist/index.js --minify",
"build:action": "esbuild src/index.ts --bundle --platform=node --target=node24 --outfile=dist/index.js --minify",
"build:cli": "esbuild src/cli.ts --bundle --platform=node --target=node24 --outfile=dist/cli.js --minify --banner:js=\"#!/usr/bin/env node\"",
"build": "npm run build:action && npm run build:cli",
"format": "prettier --write '**/*.ts'",
"format-check": "prettier --check '**/*.ts'",
"lint": "eslint src/**/*.ts",