From 654b65e0ead18fd21451d57261d34fea22ad7494 Mon Sep 17 00:00:00 2001 From: cheney Date: Thu, 16 Apr 2026 13:53:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20bun?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-deploy.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build-deploy.yml b/.gitea/workflows/build-deploy.yml index 231f4db..bd75aeb 100644 --- a/.gitea/workflows/build-deploy.yml +++ b/.gitea/workflows/build-deploy.yml @@ -15,12 +15,21 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install dependencies and build + - name: Install Bun run: | - echo "Current directory: $(pwd)" - echo "GitHub workspace: $GITHUB_WORKSPACE" - ls -la - 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" + curl -fsSL https://bun.sh/install | bash + export PATH="$HOME/.bun/bin:$PATH" + bun --version + + - 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 uses: appleboy/scp-action@v0.1.7