From d0a70d1dc6521d939b348112b4ed2fa952146bf7 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Tue, 13 Jan 2026 11:46:28 +0800 Subject: [PATCH] WIP --- .github/workflows/beta-release.yml | 4 ---- extra/release/lib.mjs | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index 01e5d098b..4d43f2966 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -74,10 +74,6 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npm run release-beta - - name: Push branch - run: | - git push origin release - - name: Upload dist.tar.gz as artifact uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 with: diff --git a/extra/release/lib.mjs b/extra/release/lib.mjs index d60579591..2685baec9 100644 --- a/extra/release/lib.mjs +++ b/extra/release/lib.mjs @@ -267,6 +267,12 @@ export function checkReleaseBranch() { export async function createDistTarGz() { const distPath = "dist"; const outputPath = "./tmp/dist.tar.gz"; + const tmpDir = "./tmp"; + + // Ensure tmp directory exists + if (!fs.existsSync(tmpDir)) { + fs.mkdirSync(tmpDir, { recursive: true }); + } // Check if dist directory exists if (!fs.existsSync(distPath)) {