Skip to content

Commit eddb955

Browse files
committed
fix(ci): install D2 CLI before withastro/action, fix bun cache for rehype-d2
1 parent bf1d664 commit eddb955

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ jobs:
1818
bun-version: latest
1919

2020
- name: Install D2 CLI
21-
run: curl -fsSL https://d2lang.com/install.sh | sh -s --
21+
run: |
22+
curl -fsSL https://d2lang.com/install.sh | sh -s --
23+
echo "$HOME/.d2/bin" >> $GITHUB_PATH
24+
d2 --version
2225
2326
- name: Install dependencies
24-
run: bun install
27+
run: bun install --no-cache
2528

2629
- name: Lint 🔍
2730
run: bun run lint
@@ -31,3 +34,5 @@ jobs:
3134

3235
- name: Build 🔧
3336
uses: withastro/action@v5
37+
env:
38+
PATH: ${{ env.PATH }}:${{ env.HOME }}/.d2/bin

0 commit comments

Comments
 (0)