-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbun-bin.yaml
39 lines (34 loc) · 818 Bytes
/
bun-bin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package:
name: bun-bin
version: 1.2.4
epoch: 0
description: "Bun binary distribution"
copyright:
- license: MIT
options:
no-provides: true
environment:
contents:
packages:
- bash
- busybox
- curl
pipeline:
- runs: |
curl -fsSL https://bun.sh/install | bash -s "bun-v${{package.version}}"
mkdir -p ${{targets.destdir}}/usr/bin
mv $HOME/.bun/bin/* ${{targets.destdir}}/usr/bin/
# symlink bunx as bun: https://github.com/oven-sh/bun/blob/main/dockerhub/distroless/Dockerfile#L70
ln -s /usr/bin/bun ${{targets.destdir}}/usr/bin/bunx
update:
enabled: true
github:
identifier: oven-sh/bun
use-tag: true
strip-prefix: bun-v
test:
pipeline:
- runs: |
bun --version
touch foo.js
bunx prettier foo.js