actions-yarn/src/run.ts
2023-02-24 18:28:24 +01:00

6 lines
163 B
TypeScript

import {exec} from '@actions/exec'
export const run = async (cmd: string, {cwd}: {cwd: string}): Promise<void> => {
await exec('yarn', cmd.split(' '), {cwd})
}