mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
fix: package manager (#42)
* fix: read version from package json * [autofix.ci] apply automated fixes * Update index.ts * Update action.yml * [autofix.ci] apply automated fixes * yarn does random things * [autofix.ci] apply automated fixes * ci: check if version from packageManager is actually 1.0.0 * ci: bash is not javascript * ci: use instead ::set-output --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
e900e6b108
commit
c0059f0222
4 changed files with 16 additions and 4 deletions
|
@ -19,7 +19,7 @@ function readVersionFromPackageJson(): string | undefined {
|
|||
return;
|
||||
}
|
||||
const { packageManager } = JSON.parse(readFileSync(path, "utf8"));
|
||||
if (!packageManager?.startsWith("bun@")) {
|
||||
if (!packageManager?.includes("bun@")) {
|
||||
return;
|
||||
}
|
||||
const [_, version] = packageManager.split("bun@");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue