mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-06-24 17:19:26 +08:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 97ba8bebfe | |||
| d8b5ea8c26 | |||
| ac4aa8b421 | |||
| d0b398ccef | |||
| 32394b360b | |||
| b257940aaa | |||
| 062383b267 | |||
| d236877258 | |||
| 21a4e475d0 |
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": ["config:base", "group:typescript-eslintMonorepo"],
|
||||||
|
"labels": ["dependencies"],
|
||||||
|
"rangeStrategy": "bump",
|
||||||
|
"reviewers": ["borales"],
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"matchSourceUrlPrefixes": ["https://github.com/actions/toolkit"],
|
||||||
|
"groupName": "GitHub Actions Toolkit"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -6,11 +6,14 @@ This Action for [yarn](https://yarnpkg.com) enables arbitrary actions with the `
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
> It is required to run `actions/setup-node@v3` before `borales/actions-yarn` in order to setup the desired node version.
|
||||||
|
|
||||||
An example workflow how to install packages via Yarn (using repository syntax):
|
An example workflow how to install packages via Yarn (using repository syntax):
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
name: CI
|
name: CI
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Test
|
name: Test
|
||||||
|
|||||||
Vendored
+1
-1
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Generated
+8
-8
@@ -13,10 +13,10 @@
|
|||||||
"@actions/io": "^1.1.2"
|
"@actions/io": "^1.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.11.9",
|
"@types/node": "^18.11.10",
|
||||||
"@typescript-eslint/parser": "^5.44.0",
|
"@typescript-eslint/parser": "^5.44.0",
|
||||||
"@vercel/ncc": "^0.34.0",
|
"@vercel/ncc": "^0.34.0",
|
||||||
"eslint": "^8.28.0",
|
"eslint": "^8.29.0",
|
||||||
"eslint-plugin-github": "^4.4.1",
|
"eslint-plugin-github": "^4.4.1",
|
||||||
"eslint-plugin-jest": "^27.1.6",
|
"eslint-plugin-jest": "^27.1.6",
|
||||||
"jest": "^29.3.1",
|
"jest": "^29.3.1",
|
||||||
@@ -1331,9 +1331,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "18.11.9",
|
"version": "18.11.10",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.10.tgz",
|
||||||
"integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==",
|
"integrity": "sha512-juG3RWMBOqcOuXC643OAdSA525V44cVgGV6dUDuiFtss+8Fk5x1hI93Rsld43VeJVIeqlP9I7Fn9/qaVqoEAuQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/prettier": {
|
"node_modules/@types/prettier": {
|
||||||
@@ -2329,9 +2329,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint": {
|
"node_modules/eslint": {
|
||||||
"version": "8.28.0",
|
"version": "8.29.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz",
|
||||||
"integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==",
|
"integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint/eslintrc": "^1.3.3",
|
"@eslint/eslintrc": "^1.3.3",
|
||||||
|
|||||||
+3
-3
@@ -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",
|
||||||
@@ -17,12 +17,12 @@
|
|||||||
"@actions/io": "^1.1.2"
|
"@actions/io": "^1.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.11.9",
|
"@types/node": "^18.11.10",
|
||||||
"@typescript-eslint/parser": "^5.44.0",
|
"@typescript-eslint/parser": "^5.44.0",
|
||||||
"@vercel/ncc": "^0.34.0",
|
"@vercel/ncc": "^0.34.0",
|
||||||
"eslint-plugin-github": "^4.4.1",
|
"eslint-plugin-github": "^4.4.1",
|
||||||
"eslint-plugin-jest": "^27.1.6",
|
"eslint-plugin-jest": "^27.1.6",
|
||||||
"eslint": "^8.28.0",
|
"eslint": "^8.29.0",
|
||||||
"jest": "^29.3.1",
|
"jest": "^29.3.1",
|
||||||
"prettier": "^2.8.0",
|
"prettier": "^2.8.0",
|
||||||
"typescript": "^4.9.3"
|
"typescript": "^4.9.3"
|
||||||
|
|||||||
+1
-1
@@ -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})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user