-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from juanigalan91/development
Release 0.2.2
- Loading branch information
Showing
15 changed files
with
21,058 additions
and
20,811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Change log | ||
|
||
## Unreleased | ||
|
||
## 0.2.2 | ||
- Added the possibility to ignore main package json | ||
- Added the possibility to just warn rather than break the CI | ||
|
||
## 0.2.1 | ||
- Added the possibility to ignore certain workspaces from the check dependencies action | ||
|
||
## 0.2.0 (current) | ||
Beta version with the check dependencies action created. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Awesome Github Action to analyse your yarn monorepo! | ||
|
||
## Requirements | ||
This Github Action assumes that you are using yarn workspaces in order to manage your monorepo. If your `package.json` has a key called `workspaces` where you confgire where your packages are, then you are good to go! | ||
This Github Action assumes that you are using yarn workspaces in order to manage your monorepo. If your `package.json` has a key called `workspaces` where you configure where your packages are, then you are good to go! | ||
|
||
## Functionalities | ||
### Dependencies check | ||
|
@@ -37,9 +37,56 @@ steps: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Check dependencies | ||
uses: juanigalan91/[email protected].0 | ||
uses: juanigalan91/[email protected].2 | ||
with: | ||
# Whether you want to execute the check dependencies action or not | ||
check-dependencies: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
If there is a workspace that you want to ignore, you can set the `ignore-workspaces` flag like this: | ||
|
||
```yaml | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Check dependencies | ||
uses: juanigalan91/[email protected] | ||
with: | ||
check-dependencies: true | ||
ignore-workspaces: 'dev-packages,third-parties' # lists of workspaces to ignore from the check, list of strings separated by a comma | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
|
||
If you want to ignore the main package json from this check, you can set the `include-main-package-json` flag like this: | ||
|
||
```yaml | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Check dependencies | ||
uses: juanigalan91/[email protected] | ||
with: | ||
check-dependencies: true | ||
include-main-package-json: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
|
||
If you want this action to just warn by adding a comment on the PR rather than breaking the CI, you can set the `only-warn` flag like this: | ||
|
||
```yaml | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Check dependencies | ||
uses: juanigalan91/[email protected] | ||
with: | ||
check-dependencies: true | ||
only-warn: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.