Update action.yml
This commit is contained in:
1 parent
40d7cb2109
commit
ac21142ba7
1 file changed
+4
-2
@@ -16,12 +16,12 @@ runs:
|
|||||||
path: |
|
path: |
|
||||||
node_modules
|
node_modules
|
||||||
*/*/node_modules
|
*/*/node_modules
|
||||||
key: ${{ runner.os }}-yarn-${{inputs.extension}}-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-yarn-${{inputs.extension}}-v5-${{ hashFiles('**/yarn.lock') }}
|
||||||
# We want to only bootstrap and install if no cache is found.
|
# We want to only bootstrap and install if no cache is found.
|
||||||
# Futhermore, we might want to do a partial, hoisted, bootstrap towards
|
# Futhermore, we might want to do a partial, hoisted, bootstrap towards
|
||||||
# the base branch if it exists, otherwise we choose develop for this.
|
# the base branch if it exists, otherwise we choose develop for this.
|
||||||
- run: |
|
- run: |
|
||||||
if [[ "${{steps.cache.outputs.cache-hit}}" != "true" ]]; then
|
if [[ "${{steps.cache.outputs.cache-hit}}" != "true" ]] || [[ "${{inputs.partial}}" != "true" ]]; then
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
yarn bootstrap --concurrency=2
|
yarn bootstrap --concurrency=2
|
||||||
elif [[ "${{inputs.partial}}" = "true" ]]; then
|
elif [[ "${{inputs.partial}}" = "true" ]]; then
|
||||||
@@ -29,3 +29,5 @@ runs:
|
|||||||
yarn bootstrap --npm-client=npm --hoist --since "origin/${ref}...HEAD" --concurrency=2
|
yarn bootstrap --npm-client=npm --hoist --since "origin/${ref}...HEAD" --concurrency=2
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user