diff --git a/.github/workflows/FissionPackage.yml b/.github/workflows/FissionPackage.yml index 1a9cab15cb..ebe94c8dd3 100644 --- a/.github/workflows/FissionPackage.yml +++ b/.github/workflows/FissionPackage.yml @@ -25,6 +25,7 @@ jobs: - name: Install Dependencies run: | cd fission + rm package-lock.json npm install - name: Get package info @@ -37,11 +38,19 @@ jobs: id: build run: | cd fission - npm run build + npm run build:prod + npm run build:dev - name: Upload Artifact uses: actions/upload-artifact@v4 - id: upload-artifact + id: upload-artifact-prod with: name: "${{ steps.info.outputs.name }}@${{ steps.info.outputs.version }}[${{ steps.date.outputs.timestamp }}]" - path: fission/dist/ \ No newline at end of file + path: fission/dist/prod/ + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + id: upload-artifact-dev + with: + name: "${{ steps.info.outputs.name }}-dev@${{ steps.info.outputs.version }}[${{ steps.date.outputs.timestamp }}]" + path: fission/dist/dev/ \ No newline at end of file diff --git a/fission/package.json b/fission/package.json index c2b972dde9..256645d327 100644 --- a/fission/package.json +++ b/fission/package.json @@ -6,6 +6,8 @@ "scripts": { "dev": "vite --open", "build": "tsc && vite build", + "build:prod": "tsc && vite build --base=/fission/ --outDir dist/prod", + "build:dev": "tsc && vite build --base=/fission-closed/ --outDir dist/dev", "preview": "vite preview --base=/fission/", "test": "vitest", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives", @@ -13,7 +15,6 @@ "prettier": "bun x prettier src --check || npx prettier src --check", "prettier:fix": "bun x prettier src --write || npx prettier src --write", "format": "(bun run prettier:fix && bun run lint:fix) || (npm run prettier:fix && npm run lint:fix)", - "build:prod": "tsc && vite build --base=/fission/", "assetpack": "curl -o public/assetpack.zip https://synthesis.autodesk.com/Downloadables/assetpack.zip && tar -xf public/assetpack.zip -C public/", "playwright:install": "bun x playwright install || npx playwright install" },