Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ jobs:
git fetch origin main
git checkout main
echo "Building main branch output..."
pnpm build --outDir dist
pnpm build

- name: Build dev branch
run: |
git fetch origin dev
git checkout dev
echo "Building dev branch output..."
pnpm build --outDir dist/dev
touch dist/.nojekyll
pnpm build
touch sites/app/dist/.nojekyll

- name: Upload build output
uses: actions/upload-pages-artifact@v3
with:
path: dist
path: sites/app/dist

deploy:
runs-on: ubuntu-latest
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/npm-publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@ jobs:

- name: Update prerelease version
id: pre-release-version
uses: adobe/update-prerelease-npm-version@v1.0.0
uses: adobe/update-prerelease-npm-version@v1.2.0
with:
pre-release-tag: "dev"

- name: Sync package versions
run: pnpm -r exec npm version ${{ steps.pre-release-version.outputs.pre-release-version }} --no-git-tag-version
Copy link

Copilot AI Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the release config, this command will update versions in all workspace packages including the root. The root biongff-monorepo package is not published and should not have its version synchronized with the viewer package. Consider filtering to only update the viewer package: pnpm --filter viewer exec npm version ...

Suggested change
run: pnpm -r exec npm version ${{ steps.pre-release-version.outputs.pre-release-version }} --no-git-tag-version
run: pnpm --filter viewer exec npm version ${{ steps.pre-release-version.outputs.pre-release-version }} --no-git-tag-version

Copilot uses AI. Check for mistakes.

- name: Install dependencies
run: pnpm install

- name: Build package
run: pnpm run build
run: pnpm build:viewer

- name: Configure npm authentication
run: |
Expand All @@ -46,4 +49,4 @@ jobs:
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm publish --tag dev --access public --no-git-checks
run: pnpm publish viewer --tag dev --access public --no-git-checks
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: pnpm install

- name: Build package
run: pnpm run build
run: pnpm build:viewer

- name: Configure npm authentication
run: |
Expand All @@ -39,4 +39,4 @@ jobs:
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm publish --access public --no-git-checks
run: pnpm publish viewer --access public --no-git-checks
8 changes: 7 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"changelogTitle": "# Changelog"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "pnpm -r exec npm version ${nextRelease.version} --no-git-tag-version"
Copy link

Copilot AI Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prepareCmd uses pnpm -r exec which will run the version command in all workspace packages including the root. However, the root package (biongff-monorepo) should not have the same version as the published viewer package. Consider using a more targeted approach like pnpm --filter viewer exec npm version ${nextRelease.version} --no-git-tag-version or filtering out the root package.

Suggested change
"prepareCmd": "pnpm -r exec npm version ${nextRelease.version} --no-git-tag-version"
"prepareCmd": "pnpm --filter viewer exec npm version ${nextRelease.version} --no-git-tag-version"

Copilot uses AI. Check for mistakes.
}
],
[
"@semantic-release/npm",
{
Expand All @@ -20,7 +26,7 @@
[
"@semantic-release/git",
{
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
"assets": ["package.json", "viewer/package.json", "sites/app/package.json", "pnpm-lock.yaml", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
52 changes: 0 additions & 52 deletions main.ts

This file was deleted.

3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build]
command = "pnpm run build"
publish = "sites/app/dist"
40 changes: 9 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,22 @@
{
"name": "@biongff/vizarr",
"name": "biongff-monorepo",
"version": "1.1.1",
"type": "module",
"author": "BioNGFF",
"license": "MIT",
"scripts": {
"dev": "vite",
"build": "npm run check && vite build",
"preview": "vite preview",
"dev": "pnpm --filter app dev",
"lint": "biome ci",
"fix": "biome check --write",
"check": "tsc"
},
"dependencies": {
"@deck.gl/core": "~9.0.0",
"@deck.gl/geo-layers": "~9.0.0",
"@deck.gl/layers": "~9.0.0",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@hms-dbmi/viv": "~0.17.2",
"@mui/icons-material": "^7.2.0",
"@mui/material": "^7.2.0",
"@vivjs/types": "~0.17.0",
"@zarrita/storage": "0.1.3",
"deck.gl": "~9.0.0",
"jotai": "^1.0.0",
"just-debounce-it": "^3.1.1",
"math.gl": "^4.1.0",
"p-map": "^7.0.3",
"quick-lru": "^7.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "18.3.1",
"zarrita": "0.5.0"
"check": "pnpm build:viewer && pnpm -r run check",
"build:viewer": "pnpm --filter vizarr build",
"build:app": "pnpm --filter app build",
"build": "pnpm build:viewer && pnpm build:app"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^12.0.2",
"@semantic-release/npm": "^13.1.1",
Expand All @@ -48,9 +29,6 @@
"typescript": "^5.8.2",
"vite": "^6.2.7"
},
"overrides": {
"react-is": "^18.3.1"
},
"packageManager": "[email protected]",
"pnpm": {
"patchedDependencies": {
Expand Down
Loading