mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-04-16 11:32:17 +08:00
Added proper support for multiple arguments
This commit is contained in:
parent
d8b5ea8c26
commit
97ba8bebfe
@ -1,5 +1,9 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 4.2.0 (5 Dev 2022)
|
||||||
|
|
||||||
|
- Added proper support for multiple arguments
|
||||||
|
|
||||||
## 4.1.0 (26 Nov 2022)
|
## 4.1.0 (26 Nov 2022)
|
||||||
|
|
||||||
- Added `dir` option
|
- Added `dir` option
|
||||||
|
|||||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -57,7 +57,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.run = void 0;
|
exports.run = void 0;
|
||||||
const exec_1 = __nccwpck_require__(514);
|
const exec_1 = __nccwpck_require__(514);
|
||||||
const run = (cmd, { cwd }) => __awaiter(void 0, void 0, void 0, function* () {
|
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;
|
exports.run = run;
|
||||||
|
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@borales/actions-yarn",
|
"name": "@borales/actions-yarn",
|
||||||
"version": "4.0.0",
|
"version": "4.2.0",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import {exec} from '@actions/exec'
|
import {exec} from '@actions/exec'
|
||||||
|
|
||||||
export const run = async (cmd: string, {cwd}: {cwd: string}) => {
|
export const run = async (cmd: string, {cwd}: {cwd: string}) => {
|
||||||
await exec('yarn', [cmd], {cwd})
|
await exec('yarn', cmd.split(' '), {cwd})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user