|
|
@ -11,8 +11,8 @@
|
|
|
|
- [macOS and Ubuntu](#macos-and-ubuntu)
|
|
|
|
- [macOS and Ubuntu](#macos-and-ubuntu)
|
|
|
|
- [Windows](#windows)
|
|
|
|
- [Windows](#windows)
|
|
|
|
- [Using multiple systems and `npm config`](#using-multiple-systems-and-npm-config)
|
|
|
|
- [Using multiple systems and `npm config`](#using-multiple-systems-and-npm-config)
|
|
|
|
- [Node - Lerna](#node---lerna)
|
|
|
|
|
|
|
|
- [Node - Yarn](#node---yarn)
|
|
|
|
- [Node - Yarn](#node---yarn)
|
|
|
|
|
|
|
|
- [Node - Lerna](#node---lerna)
|
|
|
|
- [OCaml/Reason - esy](#ocamlreason---esy)
|
|
|
|
- [OCaml/Reason - esy](#ocamlreason---esy)
|
|
|
|
- [PHP - Composer](#php---composer)
|
|
|
|
- [PHP - Composer](#php---composer)
|
|
|
|
- [Python - pip](#python---pip)
|
|
|
|
- [Python - pip](#python---pip)
|
|
|
@ -168,19 +168,6 @@ For npm, cache files are stored in `~/.npm` on Posix, or `%AppData%/npm-cache` o
|
|
|
|
${{ runner.os }}-node-
|
|
|
|
${{ runner.os }}-node-
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Node - Lerna
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>Note this example uses the new multi-paths feature and is only available at `master`
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
|
|
|
- name: restore lerna
|
|
|
|
|
|
|
|
uses: actions/cache@master
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
path: |
|
|
|
|
|
|
|
|
node_modules
|
|
|
|
|
|
|
|
*/*/node_modules
|
|
|
|
|
|
|
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Node - Yarn
|
|
|
|
## Node - Yarn
|
|
|
|
The yarn cache directory will depend on your operating system and version of `yarn`. See https://yarnpkg.com/lang/en/docs/cli/cache/ for more info.
|
|
|
|
The yarn cache directory will depend on your operating system and version of `yarn`. See https://yarnpkg.com/lang/en/docs/cli/cache/ for more info.
|
|
|
|
|
|
|
|
|
|
|
@ -198,6 +185,18 @@ The yarn cache directory will depend on your operating system and version of `ya
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Node - Lerna
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
|
|
|
- name: restore lerna
|
|
|
|
|
|
|
|
uses: actions/cache@v2
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
path: |
|
|
|
|
|
|
|
|
node_modules
|
|
|
|
|
|
|
|
*/*/node_modules
|
|
|
|
|
|
|
|
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## OCaml/Reason - esy
|
|
|
|
## OCaml/Reason - esy
|
|
|
|
Esy allows you to export built dependencies and import pre-built dependencies.
|
|
|
|
Esy allows you to export built dependencies and import pre-built dependencies.
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|