Skip to content

Commit

Permalink
Fix bunx (#18)
Browse files Browse the repository at this point in the history
* Add symlink for bunx

* Remove node_modules, use bundled code instead

* Add revision support
  • Loading branch information
Electroid authored Sep 11, 2023
1 parent 67e559d commit c34bee2
Show file tree
Hide file tree
Showing 272 changed files with 71,158 additions and 37,630 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/**/* linguist-generated=true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
node_modules/

48 changes: 10 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,22 @@ Download, install, and setup [Bun](https://bun.sh) in GitHub Actions.

## Usage

### Latest release

```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
```
### Specific release
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: "0.5.6"
```
### Canary release
## Inputs
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: canary
```
| Name | Description | Default | Examples |
| ------------- | ------------------------------------------- | -------- | -------------------------- |
| `bun-version` | The version of Bun to download and install. | `latest` | `canary`, `1.0.0`, `<sha>` |

### Specific canary release
## Outputs

```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: 9be68ac2350b965037f408ce4d47c3b9d9a76b63
```
### Action run
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-version: "action:4308768069"
```
### Custom download URL
```yaml
- uses: oven-sh/setup-bun@v1
with:
bun-download-url: https://example.com/path/to/bun.zip
```
| 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+822a00c4d508b54f650933a73ca5f4a3af9a7983` |
Binary file modified bun.lockb
Binary file not shown.
Loading

0 comments on commit c34bee2

Please sign in to comment.