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
@@ -93,6 +93,19 @@ steps:
93
93
ignore-resolutions: resolution-package-to-ignore
94
94
```
95
95
96
+
Specify `ignore-resolutions-until` to skip resolution validation entirely for certain amount of time. You can use any format supported by Date constructor [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)
97
+
98
+
```yaml
99
+
steps:
100
+
- name: Checkout
101
+
uses: actions/checkout@v3
102
+
103
+
- uses: ExpediaGroup/package-json-validator@v1
104
+
with:
105
+
rules: resolutions
106
+
ignore-resolutions-until: 2000-01-01
107
+
```
108
+
96
109
### Keys
97
110
98
111
The "keys" rule validates that your package.json does not contain duplicate dependency keys.
expect(core.setFailed).toHaveBeenCalledWith('Resolutions may not be set. Please investigate the root cause of your dependency issues!');
159
+
expect(core.info).not.toHaveBeenCalledWith();
160
+
});
161
+
162
+
it('should not fail when matching resolution is present in package.json and ignore list, while ignore-resolutions-until is provided with date in the past',()=>{
0 commit comments