You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,19 @@ steps:
80
80
rules: resolutions
81
81
```
82
82
83
+
Specify `ignore-resolutions` to skip resolution validation entirely for certain packages. Optionally provide a newline separated list of package names here
84
+
85
+
```yaml
86
+
steps:
87
+
- name: Checkout
88
+
uses: actions/checkout@v3
89
+
90
+
- uses: ExpediaGroup/package-json-validator@v1
91
+
with:
92
+
rules: resolutions
93
+
ignore-resolutions: resolution-package-to-ignore
94
+
```
95
+
83
96
### Keys
84
97
85
98
The "keys" rule validates that your package.json does not contain duplicate dependency keys.
expect(core.setFailed).toHaveBeenCalledWith('Resolutions contain packages not included in "ignore-resolutions". Please investigate the root cause of your dependency issues!');
71
+
});
72
+
73
+
it('should not fail when resolutions are not present, but ignore list is',()=>{
0 commit comments