使用 bun
Some checks failed
Build and Deploy / build (push) Failing after 53m51s

This commit is contained in:
cheney 2026-04-16 13:53:24 +08:00
parent 52b77a2ae0
commit 654b65e0ea

View File

@ -15,12 +15,21 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install dependencies and build - name: Install Bun
run: | run: |
echo "Current directory: $(pwd)" curl -fsSL https://bun.sh/install | bash
echo "GitHub workspace: $GITHUB_WORKSPACE" export PATH="$HOME/.bun/bin:$PATH"
ls -la bun --version
docker run --rm -v "$GITHUB_WORKSPACE:/app" -w /app node:20 sh -c "ls -la && npm install --registry=https://registry.npmmirror.com && npm run build"
- name: Install dependencies
run: |
export PATH="$HOME/.bun/bin:$PATH"
bun install --registry=https://registry.npmmirror.com
- name: Build project
run: |
export PATH="$HOME/.bun/bin:$PATH"
bun run build
- name: Deploy to server - name: Deploy to server
uses: appleboy/scp-action@v0.1.7 uses: appleboy/scp-action@v0.1.7