diff --git a/.github/workflows/publish-ui-npm.yaml b/.github/workflows/publish-ui-npm.yaml index 83266bd2..9986ab58 100644 --- a/.github/workflows/publish-ui-npm.yaml +++ b/.github/workflows/publish-ui-npm.yaml @@ -1,78 +1,78 @@ -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' - permissions: - contents: read - id-token: write - uses: datum-cloud/actions/.github/workflows/publish-npm-package.yaml@v1.14.0 - 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.14.0 - 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 - permissions: - contents: read - id-token: write - uses: datum-cloud/actions/.github/workflows/publish-npm-package.yaml@v1.14.0 - 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' + permissions: + contents: read + id-token: write + uses: datum-cloud/actions/.github/workflows/publish-npm-package.yaml@v1.15.0 + 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.15.0 + 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 + permissions: + contents: read + id-token: write + uses: datum-cloud/actions/.github/workflows/publish-npm-package.yaml@v1.15.0 + 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 }} diff --git a/.gitignore b/.gitignore index 12d656c3..5685bc6a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,70 +1,70 @@ -# 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 +# 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 .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