1
mirror of https://github.com/pnpm/action-setup.git synced 2026-02-14 13:30:33 +00:00

refactor: remove star imports (#196)

This commit is contained in:
Khải
2025-12-10 19:14:52 +07:00
committed by GitHub
parent e94b270858
commit 61bc82c7df
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import { getInput, error } from '@actions/core'
import * as yaml from 'yaml'
import { parse as parseYaml } from 'yaml'
import { z, ZodError } from 'zod'
const RunInstallSchema = z.object({
@@ -20,7 +20,7 @@ export type RunInstall = z.infer<typeof RunInstallSchema>
export function parseRunInstall(inputName: string): RunInstall[] {
const input = getInput(inputName, { required: true })
const parsedInput: unknown = yaml.parse(input)
const parsedInput: unknown = parseYaml(input)
try {
const result: RunInstallInput = RunInstallInputSchema.parse(parsedInput)