2023-02-22 17:47:24 -08:00
|
|
|
name: Setup Bun
|
|
|
|
description: Download, install, and setup Bun to your path.
|
|
|
|
author: robobun
|
2025-02-04 17:31:38 +00:00
|
|
|
|
2022-07-11 09:45:23 +02:00
|
|
|
branding:
|
2023-02-22 17:47:24 -08:00
|
|
|
icon: play-circle
|
|
|
|
color: white
|
2025-02-04 17:31:38 +00:00
|
|
|
|
2022-07-11 09:45:23 +02:00
|
|
|
inputs:
|
|
|
|
bun-version:
|
2025-02-04 17:31:38 +00:00
|
|
|
description: The version of Bun to install. (e.g. "latest", "canary", "1.0.0", "1.0.x", <sha>)
|
2022-07-28 07:50:56 +02:00
|
|
|
required: false
|
2024-06-21 21:11:16 +02:00
|
|
|
bun-version-file:
|
2025-02-04 17:31:38 +00:00
|
|
|
description: The version of Bun to install from file. (e.g. "package.json", ".bun-version", ".tool-versions")
|
2024-07-15 15:17:41 +03:00
|
|
|
default: null
|
2024-06-21 21:11:16 +02:00
|
|
|
required: false
|
|
|
|
bun-download-url:
|
2025-02-04 17:31:38 +00:00
|
|
|
description: Override the URL to download Bun from. This skips version resolution and verifying AVX2 support.
|
2024-06-21 21:11:16 +02:00
|
|
|
required: false
|
2023-11-01 06:17:17 -03:00
|
|
|
registry-url:
|
|
|
|
required: false
|
2025-02-04 17:31:38 +00:00
|
|
|
description: The URL of the package registry to use for installing Bun. Set the $BUN_AUTH_TOKEN environment variable to authenticate with the registry.
|
2023-11-01 06:17:17 -03:00
|
|
|
scope:
|
|
|
|
required: false
|
2025-02-04 17:31:38 +00:00
|
|
|
description: The scope for authenticating with the package registry.
|
2024-02-23 14:09:38 -05:00
|
|
|
no-cache:
|
|
|
|
required: false
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2025-02-04 17:31:38 +00:00
|
|
|
description: Disable caching of bun executable.
|
|
|
|
|
2022-07-11 09:45:23 +02:00
|
|
|
outputs:
|
|
|
|
bun-version:
|
2023-02-22 17:47:24 -08:00
|
|
|
description: The version of Bun that was installed.
|
2023-11-17 15:58:17 -08:00
|
|
|
bun-revision:
|
|
|
|
description: The revision of Bun that was installed.
|
2024-06-21 21:11:16 +02:00
|
|
|
bun-path:
|
|
|
|
description: The path to the Bun executable.
|
|
|
|
bun-download-url:
|
|
|
|
description: The URL from which Bun was downloaded.
|
2023-02-22 17:47:24 -08:00
|
|
|
cache-hit:
|
2023-03-01 15:58:31 -08:00
|
|
|
description: If the version of Bun was cached.
|
2024-06-21 21:11:16 +02:00
|
|
|
|
2022-07-11 09:45:23 +02:00
|
|
|
runs:
|
2024-02-16 22:14:07 +00:00
|
|
|
using: "node20"
|
|
|
|
main: "dist/setup/index.js"
|
|
|
|
post: "dist/cache-save/index.js"
|
|
|
|
post-if: success()
|