Skip to content

ci(release): automate npm publishing - #74

Merged
WH-2099 merged 1 commit into
mainfrom
ci/73-automate-npm-publishing
Jul 20, 2026
Merged

ci(release): automate npm publishing#74
WH-2099 merged 1 commit into
mainfrom
ci/73-automate-npm-publishing

Conversation

@WH-2099

@WH-2099 WH-2099 commented Jul 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a tag-triggered npm release workflow.
  • Verify the release tag matches package.json and points to main.
  • Check, build, pack, and publish the same tarball through the protected npm environment.
  • Use least-privilege permissions and current rolling Action major tags.

Why

Publishing should be reproducible, reviewed, and performed by CI rather than a developer workstation.

Impact

The first release uses the NPM_TOKEN environment secret as a bootstrap credential.

After @mosoo/agent-driver exists, the token configuration will be removed and publishing will use OIDC Trusted Publishing.

Runtime code is unchanged.

Validation

  • vp fmt --check .github/workflows/release.yml
  • git diff --cached --check
  • Confirmed every referenced Action uses its latest stable rolling major tag.

Closes #73

@WH-2099 WH-2099 self-assigned this Jul 20, 2026
@WH-2099
WH-2099 marked this pull request as ready for review July 20, 2026 17:32
Copilot AI review requested due to automatic review settings July 20, 2026 17:32
@WH-2099
WH-2099 merged commit 85229da into main Jul 20, 2026
4 checks passed
@WH-2099
WH-2099 deleted the ci/73-automate-npm-publishing branch July 20, 2026 17:33

Copilot AI 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.

Pull request overview

Adds protected, tag-triggered npm publishing for @mosoo/agent-driver.

Changes:

  • Validates release tags against package.json and main.
  • Checks, builds, packs, and publishes one artifact.
  • Gates publishing through the npm environment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +89 to +90
permissions:
id-token: write
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.

ci(release): automate npm publishing

2 participants