actions-yarn/src/run.ts

6 lines
148 B
TypeScript

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