Skip to content

Proposal: automating npm releases and Updates for samsam #261

@YasharF

Description

@YasharF

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 main or 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions