-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
To reduce manual effort in publishing npm packages—especially when maintainers are tied up with life, work, etc - I propose using GitHub Actions, Dependabot, and related automation to streamline dependency updates and auto-publish releases to npm. Samsam is a good candidate for this, thanks to its consistently high code quality (e.g. 100% test/code coverage).
-
Dependency Updates (Low Effort)
We can just setup depandabot and add github workflows to automerge its PRs if the current tests pass.
I'm happy to open a PR for this within a day or so if you like. -
Auto-Publishing to npm
Assuming this is desired, we need a few key decisions:- Release Cadence: Should a release happen after every commit to
mainor on a regular schedule (e.g. every two weeks assuming there have been commits)? - Auto-release limited to depandabot changes: Only auto-publish if the changes since the last release come exclusively from Dependabot. These would be published as patch versions. Challenge: When regular PRs (human-authored) are merged, auto-publishing would stall - this limits automation benefits and could delay routine updates.
- Versioning Strategy: Current commits mostly don’t use conventional commits (
fix,feat,chore, etc.), so automatic semantic versioning wouldn't quite work. I am not sure what the best way forward is. Switching to using conventional commits? Adding some actions/workflows to ensure conventional commits? Adding some actions/workflows to keep non-patch changes out of main?
- Release Cadence: Should a release happen after every commit to
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels