Added various NPM scripts.

This commit is contained in:
2026-01-01 13:44:23 -08:00
parent c178cfcb95
commit 20a18c8fff
8 changed files with 385 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
name: npm-install
description: "Download the desired NPM package tarball."
inputs:
name:
description: "Name of the package."
required: true
version:
description: "Version of the package."
required: false
default: ""
prerelease:
description: "Install prerelease packages. Values: true, false."
required: false
default: "false"
outputDirectory:
description: "Directory for the output file."
required: true
default: "."
registry:
description: "NPM registry URL."
required: false
default: "https://npm.pkg.github.com"
authToken:
description: "Authentication token for the registry."
required: true
outputs:
tgz:
description: "The path to the .tgz file."
value: ${{ steps.download.outputs.tgz }}
runs:
using: "composite"
steps:
- name: "Download the package."
id: download
run: bash ${{ github.action_path }}/download_package.sh "${{ inputs.name }}" "${{ inputs.version }}" "${{ inputs.registry }}" "${{ inputs.authToken }}" "${{ inputs.outputDirectory }}"
shell: bash