mirror of
https://code.forgejo.org/pnpm/action-setup.git
synced 2025-06-12 23:21:12 +00:00
feat: standalone binary (#92)
* feat: add an option to install the self-contained binary version of pnpm * test: add a test about nodejs_bundled * style: remove an empty line * chore: use newer pnpm * chore: update dependencies * feat: rename `nodejs_bundled` to `standalone` as @zkochan suggested * docs: add --------- Co-authored-by: Takashi Sato <takashi@tks.st>
This commit is contained in:
parent
0b715c7ebb
commit
d882d12c64
9 changed files with 287 additions and 193 deletions
src/inputs
|
@ -1,4 +1,4 @@
|
|||
import { getInput, InputOptions } from '@actions/core'
|
||||
import { getBooleanInput, getInput, InputOptions } from '@actions/core'
|
||||
import expandTilde from 'expand-tilde'
|
||||
import { RunInstall, parseRunInstall } from './run-install'
|
||||
|
||||
|
@ -7,6 +7,7 @@ export interface Inputs {
|
|||
readonly dest: string
|
||||
readonly runInstall: RunInstall[]
|
||||
readonly packageJsonFile: string
|
||||
readonly standalone: boolean
|
||||
}
|
||||
|
||||
const options: InputOptions = {
|
||||
|
@ -20,6 +21,7 @@ export const getInputs = (): Inputs => ({
|
|||
dest: parseInputPath('dest'),
|
||||
runInstall: parseRunInstall('run_install'),
|
||||
packageJsonFile: parseInputPath('package_json_file'),
|
||||
standalone: getBooleanInput('standalone'),
|
||||
})
|
||||
|
||||
export default getInputs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue