Skip to content

Commit

Permalink
Packaging update (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay authored Jul 8, 2024
2 parents 60a9b04 + 9420272 commit 0d088c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/FissionPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: Install Dependencies
run: |
cd fission
rm package-lock.json
npm install
- name: Get package info
Expand All @@ -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/
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/
3 changes: 2 additions & 1 deletion fission/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
"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",
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --fix",
"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"
},
Expand Down

0 comments on commit 0d088c8

Please sign in to comment.