Skip to content

Comments

feat: support .tool-versions#68

Merged
xhyrom merged 2 commits intomainfrom
xHyroM/feat/support-asdf
Apr 2, 2024
Merged

feat: support .tool-versions#68
xhyrom merged 2 commits intomainfrom
xHyroM/feat/support-asdf

Conversation

@xhyrom
Copy link
Collaborator

@xhyrom xhyrom commented Mar 16, 2024

Current priority for selecting version:

  1. input
  2. package.json
  3. .tool-versions
  4. auto (latest)

Closes #67

@xhyrom xhyrom requested a review from Electroid March 16, 2024 13:54
@xhyrom xhyrom merged commit 9e64795 into main Apr 2, 2024
@xhyrom xhyrom deleted the xHyroM/feat/support-asdf branch April 2, 2024 08:26
renovate bot referenced this pull request in simonknittel/simonknittel.de Apr 10, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [oven-sh/setup-bun](https://togithub.com/oven-sh/setup-bun) | action |
patch | `v1.2.0` -> `v1.2.1` |

---

### Release Notes

<details>
<summary>oven-sh/setup-bun (oven-sh/setup-bun)</summary>

###
[`v1.2.1`](https://togithub.com/oven-sh/setup-bun/releases/tag/v1.2.1)

[Compare
Source](https://togithub.com/oven-sh/setup-bun/compare/v1.2.0...v1.2.1)

##### setup-bun `v1.2.1`

Download, install, and setup [Bun](https://bun.sh) in GitHub Actions.

##### Usage

```yaml
- uses: oven-sh/setup-bun@v1
  with:
    bun-version: latest
```

##### Using a custom NPM registry

```yaml
- uses: oven-sh/setup-bun@v1
  with:
    registry-url: "https://npm.pkg.github.com/"
    scope: "@&#8203;foo"
```

If you need to authenticate with a private registry, you can set the
`BUN_AUTH_TOKEN` environment variable.

```yaml
- name: Install Dependencies
  env:
    BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
  run: bun install --frozen-lockfile
```

##### Node.js not needed

In most cases, you shouldn't need to use the
[setup-node](https://togithub.com/actions/setup-node) GitHub Action.

##### 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` | `"@&#8203;foo"`,
`"@&#8203;orgname"` |
| `no-cache` | Disable caching of the downloaded executable. | `false` |
`true`, `false` |

##### Outputs

| Name | Description | Example |
| -------------- | ------------------------------------------ |
---------------- |
| `cache-hit` | If the Bun executable was read from cache. | `true` |
| `bun-version` | The output from `bun --version`. | `1.0.0` |
| `bun-revision` | The output from `bun --revision`. | `1.0.0+822a00c4`
|

##### What's Changed

- build: bump ci actions by
[@&#8203;xHyroM](https://togithub.com/xHyroM) in
[https://github.com/oven-sh/setup-bun/pull/66](https://togithub.com/oven-sh/setup-bun/pull/66)
- feat: support .tool-versions by
[@&#8203;xHyroM](https://togithub.com/xHyroM) in
[https://github.com/oven-sh/setup-bun/pull/68](https://togithub.com/oven-sh/setup-bun/pull/68)
- fix: retry installing three times, add windows for testing by
[@&#8203;xHyroM](https://togithub.com/xHyroM) in
[https://github.com/oven-sh/setup-bun/pull/72](https://togithub.com/oven-sh/setup-bun/pull/72)
- fix: close immediately by
[@&#8203;xHyroM](https://togithub.com/xHyroM) in
[https://github.com/oven-sh/setup-bun/pull/75](https://togithub.com/oven-sh/setup-bun/pull/75)

**Full Changelog**:
oven-sh/setup-bun@v1.2.0...v1.2.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/simonknittel/simonknittel.de).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in simonknittel/sam Apr 10, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [oven-sh/setup-bun](https://togithub.com/oven-sh/setup-bun) | action |
patch | `v1.2.0` -> `v1.2.1` |

---

### Release Notes

<details>
<summary>oven-sh/setup-bun (oven-sh/setup-bun)</summary>

###
[`v1.2.1`](https://togithub.com/oven-sh/setup-bun/releases/tag/v1.2.1)

[Compare
Source](https://togithub.com/oven-sh/setup-bun/compare/v1.2.0...v1.2.1)

##### setup-bun `v1.2.1`

Download, install, and setup [Bun](https://bun.sh) in GitHub Actions.

##### Usage

```yaml
- uses: oven-sh/setup-bun@v1
  with:
    bun-version: latest
```

##### Using a custom NPM registry

```yaml
- uses: oven-sh/setup-bun@v1
  with:
    registry-url: "https://npm.pkg.github.com/"
    scope: "@&#8203;foo"
```

If you need to authenticate with a private registry, you can set the
`BUN_AUTH_TOKEN` environment variable.

```yaml
- name: Install Dependencies
  env:
    BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
  run: bun install --frozen-lockfile
```

##### Node.js not needed

In most cases, you shouldn't need to use the
[setup-node](https://togithub.com/actions/setup-node) GitHub Action.

##### 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` | `"@&#8203;foo"`,
`"@&#8203;orgname"` |
| `no-cache` | Disable caching of the downloaded executable. | `false` |
`true`, `false` |

##### Outputs

| Name | Description | Example |
| -------------- | ------------------------------------------ |
---------------- |
| `cache-hit` | If the Bun executable was read from cache. | `true` |
| `bun-version` | The output from `bun --version`. | `1.0.0` |
| `bun-revision` | The output from `bun --revision`. | `1.0.0+822a00c4`
|

##### What's Changed

- build: bump ci actions by
[@&#8203;xHyroM](https://togithub.com/xHyroM) in
[https://github.com/oven-sh/setup-bun/pull/66](https://togithub.com/oven-sh/setup-bun/pull/66)
- feat: support .tool-versions by
[@&#8203;xHyroM](https://togithub.com/xHyroM) in
[https://github.com/oven-sh/setup-bun/pull/68](https://togithub.com/oven-sh/setup-bun/pull/68)
- fix: retry installing three times, add windows for testing by
[@&#8203;xHyroM](https://togithub.com/xHyroM) in
[https://github.com/oven-sh/setup-bun/pull/72](https://togithub.com/oven-sh/setup-bun/pull/72)
- fix: close immediately by
[@&#8203;xHyroM](https://togithub.com/xHyroM) in
[https://github.com/oven-sh/setup-bun/pull/75](https://togithub.com/oven-sh/setup-bun/pull/75)

**Full Changelog**:
oven-sh/setup-bun@v1.2.0...v1.2.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/simonknittel/sinister-incorporated).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Support using ASDF .tool-versions file for setting the bun version

1 participant