Added various NPM scripts.
This commit is contained in:
36
npm/npm-install/action.yaml
Normal file
36
npm/npm-install/action.yaml
Normal 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
|
||||
Reference in New Issue
Block a user