mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-06-23 00:31:04 +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
|
||||
|
||||
## 4.2.0 (5 Dev 2022)
|
||||
|
||||
- Added proper support for multiple arguments
|
||||
|
||||
## 4.1.0 (26 Nov 2022)
|
||||
|
||||
- Added `dir` option
|
||||
|
||||
@@ -6,11 +6,14 @@ This Action for [yarn](https://yarnpkg.com) enables arbitrary actions with the `
|
||||
|
||||
## 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):
|
||||
|
||||
```yml
|
||||
name: CI
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Test
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
|
||||
|
||||
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"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/node": "^18.11.10",
|
||||
"@typescript-eslint/parser": "^5.44.0",
|
||||
"@vercel/ncc": "^0.34.0",
|
||||
"eslint": "^8.28.0",
|
||||
"eslint": "^8.29.0",
|
||||
"eslint-plugin-github": "^4.4.1",
|
||||
"eslint-plugin-jest": "^27.1.6",
|
||||
"jest": "^29.3.1",
|
||||
@@ -1331,9 +1331,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "18.11.9",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz",
|
||||
"integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==",
|
||||
"version": "18.11.10",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.10.tgz",
|
||||
"integrity": "sha512-juG3RWMBOqcOuXC643OAdSA525V44cVgGV6dUDuiFtss+8Fk5x1hI93Rsld43VeJVIeqlP9I7Fn9/qaVqoEAuQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/prettier": {
|
||||
@@ -2329,9 +2329,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint": {
|
||||
"version": "8.28.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz",
|
||||
"integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==",
|
||||
"version": "8.29.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz",
|
||||
"integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@eslint/eslintrc": "^1.3.3",
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@borales/actions-yarn",
|
||||
"version": "4.0.0",
|
||||
"version": "4.2.0",
|
||||
"main": "lib/index.js",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
@@ -17,12 +17,12 @@
|
||||
"@actions/io": "^1.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/node": "^18.11.10",
|
||||
"@typescript-eslint/parser": "^5.44.0",
|
||||
"@vercel/ncc": "^0.34.0",
|
||||
"eslint-plugin-github": "^4.4.1",
|
||||
"eslint-plugin-jest": "^27.1.6",
|
||||
"eslint": "^8.28.0",
|
||||
"eslint": "^8.29.0",
|
||||
"jest": "^29.3.1",
|
||||
"prettier": "^2.8.0",
|
||||
"typescript": "^4.9.3"
|
||||
|
||||
+1
-1
@@ -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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user