37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
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: ${{ github.server_url }}/api/packages/${{ github.repository_owner }}/npm/
|
|
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
|