feat: add dev build mode to npm publish workflow#56
Merged
Conversation
Add a `release-mode` input to the publish-npm-package workflow:
- `dev` (default): publishes x.y.z-dev.{sha} to the `dev` dist-tag
on every push to main. No version bump commit or git tag created.
- `release`: existing behavior — bumps version, creates git tag,
publishes stable version to `latest` dist-tag.
This lets consumers iterate quickly on dev builds while controlling
when stable releases are cut.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Release events are intentional — skip the dorny/paths-filter check and always publish. This lets callers use a single workflow file with a dynamic release-mode expression based on github.event_name. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
scotwells
added a commit
to datum-cloud/activity
that referenced
this pull request
Mar 11, 2026
Switch to the dev/release dual-mode workflow:
- Push to main publishes x.y.z-dev.{sha} to the `dev` npm dist-tag
- GitHub releases publish stable versions to `latest`
References datum-cloud/actions#56 for the shared workflow change.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 tasks
kevwilliams
approved these changes
Mar 11, 2026
scotwells
added a commit
to datum-cloud/activity
that referenced
this pull request
Mar 11, 2026
## Summary
- Switch `publish-ui-npm.yaml` to the dual-mode dev/release workflow
pattern
- **Push to main** → publishes `x.y.z-dev.{sha}` to the `dev` npm
dist-tag
- **GitHub release** → publishes stable version to `latest` npm dist-tag
with auto version bump
Currently references `datum-cloud/actions@feat/npm-dev-builds` — update
to the tagged release once
[datum-cloud/actions#56](datum-cloud/actions#56)
is merged and tagged.
## Test plan
- [ ] Merge and verify a dev build is published (e.g.,
`0.1.2-dev.abc1234`)
- [ ] Verify `npm install @datum-cloud/activity-ui@dev` resolves the new
version
- [ ] Create a GitHub release and verify stable publish works
🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
release-modeinput topublish-npm-package.yamlwith two modes:dev(default): publishesx.y.z-dev.{sha}to thedevnpm dist-tag. No version bump commit, no git tag.release: existing behavior — auto-bumps version from PR labels, creates git tag, publishes stable version tolatest.Single workflow file for both modes
Callers use one workflow with a dynamic
release-modeexpression:release-mode: dev→ publishes0.1.2-dev.abc1234todevtagrelease-mode: release→ bumps version, publishes tolatesttagBackwards compatibility note
The default
release-modeisdev. Existing callers that don't pass the input will switch from stable to dev builds. They need to either:release-mode: releaseto keep current behavior, orTest plan
x.y.z-dev.{sha}published withdevtag🤖 Generated with Claude Code