From f4d14e03ff726c06358e5557344e1da148b56cf7 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 2 Jun 2024 03:52:40 -0700 Subject: [PATCH 1/4] Add `bun-download-url` to `actions.yml` and rebuild (#83) * Add download URL * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index bfb1def..688b1a4 100644 --- a/action.yml +++ b/action.yml @@ -5,6 +5,9 @@ branding: icon: play-circle color: white inputs: + bun-download-url: + description: "Override the URL to download Bun from. This skips version resolution and verifying AVX2 support." + required: false bun-version: description: 'The version of Bun to install. (e.g. "latest", "canary", "1.0.0", "1.0.x", )' required: false From 6ef34ab5788c3abb2c1b985ccbcb329a750611b0 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 2 Jun 2024 04:00:50 -0700 Subject: [PATCH 2/4] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8eefc3f..a41f9c2 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,16 @@ If you need to authenticate with a private registry, you can set the `BUN_AUTH_T run: bun install --frozen-lockfile ``` +### Override download url + +If you need to override the download URL, you can use the `bun-download-url` input. + +```yaml +- uses: oven-sh/setup-bun + with: + bun-download-url: "https://github.com/oven-sh/bun/releases/latest/download/bun-linux-x64.zip" +``` + ### Node.js not needed In most cases, you shouldn't need to use the [setup-node](https://github.com/actions/setup-node) GitHub Action. From 45d2c093591073ed4f8d61611ed74c59c6c86db3 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 2 Jun 2024 04:01:49 -0700 Subject: [PATCH 3/4] Update README.md --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a41f9c2..caee0ba 100644 --- a/README.md +++ b/README.md @@ -44,12 +44,13 @@ In most cases, you shouldn't need to use the [setup-node](https://github.com/act ## Inputs -| Name | Description | Default | Examples | -| -------------- | -------------------------------------------------- | ----------- | ------------------------------- | -| `bun-version` | The version of Bun to download and install. | `latest` | `canary`, `1.0.0`, `1.0.x` | -| `registry-url` | Registry URL where some private package is stored. | `undefined` | `"https://npm.pkg.github.com/"` | -| `scope` | Scope for private packages. | `undefined` | `"@foo"`, `"@orgname"` | -| `no-cache` | Disable caching of the downloaded executable. | `false` | `true`, `false` | +| Name | Description | Default | Examples | +| ------------------ | -------------------------------------------------- | ----------- | ------------------------------- | +| `bun-version` | The version of Bun to download and install. | `latest` | `canary`, `1.0.0`, `1.0.x` | +| `bun-download-url` | URL to download .zip file for Bun release | generated | - | +| `registry-url` | Registry URL where some private package is stored. | `undefined` | `"https://npm.pkg.github.com/"` | +| `scope` | Scope for private packages. | `undefined` | `"@foo"`, `"@orgname"` | +| `no-cache` | Disable caching of the downloaded executable. | `false` | `true`, `false` | ## Outputs From 43b2dc9ae87f6949ab33cd393f0ded6654d2cc9b Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 2 Jun 2024 04:02:05 -0700 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index caee0ba..6523586 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ In most cases, you shouldn't need to use the [setup-node](https://github.com/act | Name | Description | Default | Examples | | ------------------ | -------------------------------------------------- | ----------- | ------------------------------- | | `bun-version` | The version of Bun to download and install. | `latest` | `canary`, `1.0.0`, `1.0.x` | -| `bun-download-url` | URL to download .zip file for Bun release | generated | - | +| `bun-download-url` | URL to download .zip file for Bun release | | | | `registry-url` | Registry URL where some private package is stored. | `undefined` | `"https://npm.pkg.github.com/"` | | `scope` | Scope for private packages. | `undefined` | `"@foo"`, `"@orgname"` | | `no-cache` | Disable caching of the downloaded executable. | `false` | `true`, `false` |