Skip to content
Open
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
144 changes: 72 additions & 72 deletions .github/workflows/publish-ui-npm.yaml
Original file line number Diff line number Diff line change
@@ -1,72 +1,72 @@
name: Publish UI to NPM

on:
push:
branches:
- main
workflow_dispatch:
inputs:
bump-type:
description: "Version bump type"
type: choice
options: [patch, minor, major]
default: patch

jobs:
# ── Dev publish ──────────────────────────────────────────────────────────
# Every push to main publishes a pre-release dev build. Releases are
# triggered manually via workflow_dispatch when the team is ready to ship.
publish-dev:
name: Publish dev build
if: github.event_name == 'push'
uses: datum-cloud/actions/.github/workflows/publish-npm-package.yaml@v1.13.1
with:
package-name: "@datum-cloud/activity-ui"
package-path: ui
release-mode: dev
secrets: inherit

# ── Bump version ─────────────────────────────────────────────────────────
# Runs only on manual dispatch. Delegates to the shared bump-npm-version
# reusable workflow, which bumps package.json, commits, tags, and pushes.
# Downstream jobs read new-version from this job's outputs automatically.
bump-version:
name: Bump version
if: github.event_name == 'workflow_dispatch'
permissions:
contents: write
uses: datum-cloud/actions/.github/workflows/bump-npm-version.yaml@v1.13.1
with:
package-path: ui
package-name: "@datum-cloud/activity-ui"
bump-type: ${{ inputs.bump-type }}

# ── Publish release to npm ───────────────────────────────────────────────
# Runs after bump-version. package.json already has the bumped version.
publish-release:
name: Publish release
needs: bump-version
uses: datum-cloud/actions/.github/workflows/publish-npm-package.yaml@v1.13.1
with:
package-name: "@datum-cloud/activity-ui"
package-path: ui
release-mode: release
secrets: inherit

# ── Create GitHub Release ────────────────────────────────────────────────
create-release:
name: Create GitHub Release
needs: [bump-version, publish-release]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_VERSION: ${{ needs.bump-version.outputs.new-version }}
run: |
gh release create "$RELEASE_VERSION" \
--title "@datum-cloud/activity-ui $RELEASE_VERSION" \
--generate-notes \
--repo ${{ github.repository }}
name: Publish UI to NPM
on:
push:
branches:
- main
workflow_dispatch:
inputs:
bump-type:
description: "Version bump type"
type: choice
options: [patch, minor, major]
default: patch
jobs:
# ── Dev publish ──────────────────────────────────────────────────────────
# Every push to main publishes a pre-release dev build. Releases are
# triggered manually via workflow_dispatch when the team is ready to ship.
publish-dev:
name: Publish dev build
if: github.event_name == 'push'
uses: datum-cloud/actions/.github/workflows/publish-npm-package.yaml@v1.13.1
with:
package-name: "@datum-cloud/activity-ui"
package-path: ui
release-mode: dev
secrets: inherit
# ── Bump version ─────────────────────────────────────────────────────────
# Runs only on manual dispatch. Delegates to the shared bump-npm-version
# reusable workflow, which bumps package.json, commits, tags, and pushes.
# Downstream jobs read new-version from this job's outputs automatically.
bump-version:
name: Bump version
if: github.event_name == 'workflow_dispatch'
permissions:
contents: write
uses: datum-cloud/actions/.github/workflows/bump-npm-version.yaml@v1.13.1
with:
package-path: ui
package-name: "@datum-cloud/activity-ui"
bump-type: ${{ inputs.bump-type }}
# ── Publish release to npm ───────────────────────────────────────────────
# Runs after bump-version. package.json already has the bumped version.
publish-release:
name: Publish release
needs: bump-version
uses: datum-cloud/actions/.github/workflows/publish-npm-package.yaml@v1.13.1
with:
package-name: "@datum-cloud/activity-ui"
package-path: ui
release-mode: release
secrets: inherit
# ── Create GitHub Release ────────────────────────────────────────────────
create-release:
name: Create GitHub Release
needs: [bump-version, publish-release]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_VERSION: ${{ needs.bump-version.outputs.new-version }}
run: |
gh release create "$RELEASE_VERSION" \
--title "@datum-cloud/activity-ui $RELEASE_VERSION" \
--generate-notes \
--repo ${{ github.repository }}
139 changes: 69 additions & 70 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,70 +1,69 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
bin/
dist/

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool
*.out
coverage.txt
coverage.html

# Go workspace file
go.work

# Dependency directories
vendor/

# IDE specific files
.idea/
.vscode/
*.swp
*.swo
*~

# OS specific files
.DS_Store
Thumbs.db

# Build outputs
./activity

# Kubernetes secrets
*.key
*.crt
*.pem

# Temporary files
tmp/
temp/

# Local environment files
.env
.env.local

# ClickHouse data
clickhouse-data/

# Dashboard build outputs
dashboards/vendor/
dashboards/jsonnetfile.lock.json
observability/vendor/
observability/jsonnetfile.lock.json

# Directory used for the test-infra repo to manage the test-infra environment.
.test-infra

# Directory used by the taskfile for remote taskfile storage
.task
.infra

# Node.js
node_modules/
.pnpm-store/
.claude/settings.local.json
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
bin/
dist/

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool
*.out
coverage.txt
coverage.html

# Go workspace file
go.work

# Dependency directories
vendor/

# IDE specific files
.idea/
.vscode/
*.swp
*.swo
*~

# OS specific files
.DS_Store
Thumbs.db

# Build outputs
./activity

# Kubernetes secrets
*.key
*.crt
*.pem

# Temporary files
tmp/
temp/

# Local environment files

# ClickHouse data
clickhouse-data/

# Dashboard build outputs
dashboards/vendor/
dashboards/jsonnetfile.lock.json
observability/vendor/
observability/jsonnetfile.lock.json

# Directory used for the test-infra repo to manage the test-infra environment.
.test-infra

# Directory used by the taskfile for remote taskfile storage
.task
.infra

# Node.js
node_modules/
.pnpm-store/
.claude/settings.local.json
config.bat
92 changes: 46 additions & 46 deletions ui/example/package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
{
"name": "activity-ui-example",
"version": "0.1.0",
"private": true,
"type": "module",
"sideEffects": false,
"scripts": {
"dev": "remix vite:dev",
"build": "remix vite:build",
"start": "remix-serve ./build/server/index.js",
"type-check": "tsc --noEmit"
},
"dependencies": {
"@datum-cloud/activity-ui": "workspace:*",
"@datum-cloud/datum-ui": "^0.8.0",
"@monaco-editor/react": "^4.7.0",
"@remix-run/node": "^2.15.2",
"@remix-run/react": "^2.15.2",
"@remix-run/serve": "^2.15.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"isbot": "^5.1.17",
"js-yaml": "^4.1.1",
"lucide-react": "^0.577.0",
"monaco-editor": "^0.55.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwind-merge": "^3.4.0",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@remix-run/dev": "^2.15.2",
"@tailwindcss/oxide-darwin-arm64": "^4.2.1",
"@tailwindcss/postcss": "^4.1.17",
"@tailwindcss/vite": "^4.2.1",
"@types/js-yaml": "^4.0.9",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"autoprefixer": "^10.4.22",
"lightningcss": "^1.31.1",
"postcss": "^8.5.6",
"tailwindcss": "^4.1.17",
"typescript": "^5.3.3",
"vite": "^5.0.8"
}
}
{
"name": "activity-ui-example",
"version": "0.1.0",
"private": true,
"type": "module",
"sideEffects": false,
"scripts": {
"dev": "remix vite:dev",
"build": "remix vite:build",
"start": "remix-serve ./build/server/index.js",
"type-check": "tsc --noEmit"
},
"dependencies": {
"@datum-cloud/activity-ui": "workspace:*",
"@datum-cloud/datum-ui": "^0.8.0",
"@monaco-editor/react": "^4.7.0",
"@remix-run/node": "^2.15.2",
"@remix-run/react": "^2.15.2",
"@remix-run/serve": "^2.15.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"isbot": "^5.1.17",
"js-yaml": "^4.1.1",
"lucide-react": "^0.577.0",
"monaco-editor": "^0.55.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwind-merge": "^3.4.0",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@remix-run/dev": "^2.15.2",
"@tailwindcss/oxide-darwin-arm64": "^4.2.1",
"@tailwindcss/postcss": "^4.1.17",
"@tailwindcss/vite": "^4.2.1",
"@types/js-yaml": "^4.0.9",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"autoprefixer": "^10.4.22",
"lightningcss": "^1.31.1",
"postcss": "^8.5.10",
"tailwindcss": "^4.1.17",
"typescript": "^5.3.3",
"vite": "^6.4.2"
}
}
Loading
Loading