Skip to content

Commit 13157df

Browse files
refactor: maintain NPM fallback logic without explicit checks
1 parent 9923aa2 commit 13157df

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

docs/breaking-changes/v8.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

install-dependencies/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
| name | description |
6464
| --- | --- |
6565
| `cache-hit` | <p>Whether the cache was hit when installing dependencies</p> |
66-
| `package-manager` | <p>The package manager used to install dependencies</p> |
66+
| `package-manager` | <p>The package manager used to install dependencies. Falls back to NPM by default.</p> |
6767
<!-- action-docs-outputs source="action.yaml" -->
6868
<!-- action-docs-runs source="action.yaml" -->
6969
## Runs

install-dependencies/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ outputs:
2626
description: Whether the cache was hit when installing dependencies
2727
value: ${{ steps.read_cache.outputs.cache-hit }}
2828
package-manager:
29-
description: The package manager used to install dependencies
30-
value: ${{ steps.check_bun_lock.outputs.files_exists == 'true' && 'bun' || (steps.check_pnpm_lock.outputs.files_exists == 'true' && 'pnpm' || (steps.check_yarn_lock.outputs.files_exists == 'true' && 'yarn') || (steps.check_npm_lock.outputs.files_exists == 'true' && 'npm')) }}
29+
description: The package manager used to install dependencies. Falls back to NPM by default.
30+
value: ${{ steps.check_bun_lock.outputs.files_exists == 'true' && 'bun' || (steps.check_pnpm_lock.outputs.files_exists == 'true' && 'pnpm' || (steps.check_yarn_lock.outputs.files_exists == 'true' && 'yarn') || 'npm') }}
3131
runs:
3232
using: composite
3333
steps:
@@ -61,7 +61,7 @@ runs:
6161
- name: Compute lockfile hash
6262
if: inputs.s3-bucket-name != ''
6363
id: lockfile_hash
64-
run: echo "hash=${{ steps.check_bun_lock.outputs.files_exists == 'true' && hashFiles('**/bun.lock') || (steps.check_pnpm_lock.outputs.files_exists == 'true' && hashFiles('**/pnpm-lock.yaml') || (steps.check_yarn_lock.outputs.files_exists == 'true' && hashFiles('**/yarn.lock') || (steps.check_npm_lock.outputs.files_exists == 'true' && hashFiles('**/package-lock.json')))) }}" >> $GITHUB_OUTPUT
64+
run: echo "hash=${{ steps.check_bun_lock.outputs.files_exists == 'true' && hashFiles('**/bun.lock') || (steps.check_pnpm_lock.outputs.files_exists == 'true' && hashFiles('**/pnpm-lock.yaml') || (steps.check_yarn_lock.outputs.files_exists == 'true' && hashFiles('**/yarn.lock') || hashFiles('**/package-lock.json'))) }}" >> $GITHUB_OUTPUT
6565
shell: bash
6666
- name: Load cached node_modules if available
6767
if: inputs.s3-bucket-name != ''

0 commit comments

Comments
 (0)