Added proper support for multiple arguments

This commit is contained in:
Borales 2022-12-05 21:31:43 +01:00
parent d8b5ea8c26
commit 97ba8bebfe
No known key found for this signature in database
5 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,9 @@
# CHANGELOG
## 4.2.0 (5 Dev 2022)
- Added proper support for multiple arguments
## 4.1.0 (26 Nov 2022)
- Added `dir` option

2
dist/index.js vendored
View File

@ -57,7 +57,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.run = void 0;
const exec_1 = __nccwpck_require__(514);
const run = (cmd, { cwd }) => __awaiter(void 0, void 0, void 0, function* () {
yield (0, exec_1.exec)('yarn', [cmd], { cwd });
yield (0, exec_1.exec)('yarn', cmd.split(' '), { cwd });
});
exports.run = run;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "@borales/actions-yarn",
"version": "4.0.0",
"version": "4.2.0",
"main": "lib/index.js",
"scripts": {
"build": "tsc",

View File

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