chore: improve ci pipeline (#1764)
* fix: caching deps + add true parallelization to integration tests api * fix: github action * chore: upgrade to yarn berry (#1762) * init migration * remove: yarn.lock from all pkgs * fix: build script in pkgs * adjust yarn config * fix: yarn.lock and yarnrc.yml * fix: github actions * fix: wrong type * fix (medusa-react): use dts-cli instead of tsdx * fix: yarn.lock * fix: yarn v * fix: prepare script * add: comment on why we need to downgrade yarn before medusa-dev * chore: move to Turborepo (#1763) * increase number of parallel nodes * fix (medusa-fulfillment-webshipper): build script * fix: use new version of medusa-dev * fix: rename cache-bootstrap to cache-deps
This commit is contained in:
23
.github/actions/cache-deps/action.yml
vendored
Normal file
23
.github/actions/cache-deps/action.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: cache-deps
|
||||
description: Creates a cache with the given extension for monorepo dependencies
|
||||
inputs:
|
||||
extension:
|
||||
description: Extension for cache name
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: actions/cache@v3
|
||||
id: cache
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
*/*/node_modules
|
||||
key: ${{ runner.os }}-yarn-${{inputs.extension}}-v8-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-${{inputs.extension}}-v8
|
||||
# We want to only bootstrap and install if no cache is found.
|
||||
- run: |
|
||||
if [[ "${{steps.cache.outputs.cache-hit}}" != "true" ]]; then
|
||||
yarn install --immutable
|
||||
fi
|
||||
shell: bash
|
||||
Reference in New Issue
Block a user