This commit is contained in:
Louis Lam 2026-01-13 11:46:28 +08:00
parent 58d1309adb
commit d0a70d1dc6
2 changed files with 6 additions and 4 deletions

View File

@ -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:

View File

@ -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)) {