Skip to content

ci: auto-publish via nano-step/shared-workflows@v1 - #1

Open
kokorolx wants to merge 1 commit into
mainfrom
ci/auto-publish-via-shared-workflows
Open

kokorolx wants to merge 1 commit into
mainfrom
ci/auto-publish-via-shared-workflows

Conversation

@kokorolx

Copy link
Copy Markdown

What

Phase 2 rollout of nano-step/shared-workflows@v1 auto-publish to rive-playground. Mirrors the proven pattern from nano-step/open-design-mcp and nano-step/skill-manager (pilot — see skill-manager PR #1 for the validated reference).

Why

Eliminates manual npm publish from a maintainer's laptop. After merge, every push to main with a conventional-commit message will auto-bump, tag, publish to npm, and create a GitHub Release.

Files added

File Purpose
CHANGELOG.md Required marker line for publish-stable to insert entries
.github/workflows/publish-stable.yml Auto-publish on push to main
.github/workflows/publish-beta.yml Auto-publish pre-releases on push to beta

Per-repo config used

  • package-name: rive-playground
  • build-command: npm run build
  • Default branch: main
  • Visibility: public

After merge

  1. Publish Stable workflow fires within ~30s
  2. Workflow scans commits since last tag (or all history for first run) → picks semver bump from conventional commits
  3. feat: → minor, fix:/chore:/docs: → patch, !/BREAKING CHANGE → major
  4. Workflow auto-commits the bump with [skip ci], tags, publishes to npm, creates GitHub Release

Rollback

If anything misbehaves: revert this PR's commit. No state mutates until the first push to main after merge.

Validation

The same workflow files are running successfully on:

  • nano-step/open-design-mcp (Tier 2 — original reference)
  • nano-step/skill-manager (Phase 1 pilot — published @nano-step/skill-manager@5.8.0 on 2026-05-19)

This PR is part of [Phase 2 — fan out to all 10 Tier-1 npm packages in nano-step org].

Adds reusable-workflow callers so pushes to main and beta auto-publish
to npm without manual 'npm publish'. Mirrors the proven pattern from
nano-step/skill-manager and nano-step/open-design-mcp.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the CHANGELOG.md by removing the detailed release notes for version 1.0.0 and replacing them with a generic header. The reviewer recommends preserving the existing version history rather than deleting it. Additionally, the reviewer pointed out that the GitHub workflow files mentioned in the pull request description are missing from the current changes.

Comment thread CHANGELOG.md
@@ -1,24 +1,4 @@
# Changelog — Rive Playground
# Changelog

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The pull request description mentions adding .github/workflows/publish-stable.yml and .github/workflows/publish-beta.yml, but these files are missing from the current diff. Please ensure that the workflow files are included in the PR so that the auto-publish functionality can be established.

Comment thread CHANGELOG.md
Comment on lines +3 to -24
All notable changes to this project will be documented in this file.

### CLI & MCP Server
- **Rive Parser rewritten** — switched from `@rive-app/canvas` (high-level) to `@rive-app/canvas-advanced` (low-level WASM). Zero native dependencies (`canvas`, `jsdom`, `xmlhttprequest` removed).
- **Full metadata extraction** — all artboards (not just default), animations with fps/duration, state machines with typed inputs (boolean, number, trigger).
- **Cross-platform** — works on macOS (Intel + Apple Silicon), Linux, Windows without native build issues.
- **5 CLI commands**: `inspect`, `scan`, `validate`, `generate-types`, `watch`.
- **5 MCP tools**: `inspect-rive`, `scan-rive-files`, `validate-rive-config`, `generate-rive-types`, `watch-rive-files`.

### Playground (New)
- **Rive animation viewer** — load `.riv` files via drag-and-drop, file picker, or URL.
- **Real-time ViewModel editing** — string, number, boolean, color, enum, trigger, image properties with live preview.
- **Nested ViewModel support** — drill-down into nested VM instances (Offer1, Offer2, etc.).
- **Image property mapping** — upload local files or paste URLs; images decoded via Rive WASM and applied to animation.
- **State Machine controls** — fire triggers, toggle booleans, adjust numbers in real-time.
- **Animation inspector** — all artboards with dimensions, animations with duration/fps, state machine input types.
- **Playback controls** — play, pause, reset (remount) with floating pill bar.
- **Zoom & Pan** — Ctrl+Scroll to zoom, Alt+Drag to pan, Alt+Double-click to reset.
- **Drag-and-drop on canvas** — drop new `.riv` files directly onto the workspace.
- **Export config** — export current configuration as JSON or Markdown for LiveOps/CSM transfer.
- **Dark theme UI** — ChatGPT-inspired design with Plus Jakarta Sans typography, dot-grid canvas, stagger animations, skeleton loading.
- **Type badges** — color-coded badges for each property type (boolean, number, trigger, string, color, enum, image, viewModel).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The existing version history for v1.0.0 is being removed. It is recommended to preserve these manual release notes even when transitioning to automated changelog generation. You can keep the previous content below the new header and introductory text to maintain a complete project history. Most automation tools will append or prepend new entries without affecting existing content further down the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant