From b9697a684db7b5268f7346c2ed9149d06dd893bf Mon Sep 17 00:00:00 2001 From: thislight Date: Sun, 14 Jul 2024 21:18:28 +0800 Subject: [PATCH] ci/depoly: use new workflow --- .forgejo/workflows/depoly.yml | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/depoly.yml b/.forgejo/workflows/depoly.yml index bf3bfc3..a367480 100644 --- a/.forgejo/workflows/depoly.yml +++ b/.forgejo/workflows/depoly.yml @@ -3,17 +3,14 @@ on: ['push'] jobs: depoly: - runs-on: linux - container: - image: code.lightstands.xyz/standcoded/fedora:40 + runs-on: fedora-40 steps: - name: Checkout uses: actions/checkout@v4 - name: Setup pnpm run: | - corepack enable - corepack prepare pnpm@latest-9 --activate + corepack install pnpm config set store-dir /tmp/pnpm-store - name: Cache Dependencies @@ -26,6 +23,9 @@ jobs: - name: Install Dependencies run: pnpm i + - name: Build Dist + run: pnpm dist + - name: Depoly to Cloudflare uses: https://github.com/cloudflare/wrangler-action@v3 with: diff --git a/package.json b/package.json index a1ec53e..cef961e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "dev": "vite --host 0.0.0.0", "preview": "vite preview", - "prepare": "vite build" + "dist": "vite build" }, "keywords": [], "author": "Rubicon",