Skip to content

Commit 664a301

Browse files
committed
add docs for CI
1 parent 2ae9a92 commit 664a301

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ need to repeat the setup process for the child package. Also make sure you're in
5959
the child package directory when you run `patch-package` to generate the patch
6060
files.
6161

62+
### CI
63+
64+
- Gitlab Docker builds, see
65+
[#185](https://github.com/ds300/patch-package/issues/185)
66+
- If you cache `node_modules` rather than running `yarn install` every time,
67+
make sure that the `patches` dir is included in your cache key somehow.
68+
Otherwise if you update a patch then the change may not be reflected on
69+
subsequent CI runs.
70+
71+
e.g. for cirlce ci before loading/saving you cache run `cat patches/* | md5 > patches.hash` and then update your hash key to include a checksum of that file, `{{ checksum "yarn.lock" }}-{{ checksum "patches.hash" }}`
72+
73+
6274
## Usage
6375

6476
### Making patches

0 commit comments

Comments
 (0)