Skip to content

Add tag-triggered publish workflow - #4

Merged
alphaolomi merged 1 commit into
mainfrom
ci/publish-workflow
Nov 21, 2026
Merged

alphaolomi merged 1 commit into
mainfrom
ci/publish-workflow

Conversation

@alphaolomi

Copy link
Copy Markdown
Contributor

Adds a workflow that publishes to npm when a GitHub release is published (or when run manually from a tag).

  • Gated on the repository variable PUBLISH_ENABLED == 'true'; without it the job is skipped.
  • Fails fast if the release tag does not match the package.json version.
  • Actions pinned to full commit SHAs; least-privilege permissions.
  • Lint, typecheck, tests and build, then npm publish --provenance --access public via trusted publishing, or the NPM_TOKEN secret if present.
  • Adds a prepublishOnly script (lint, typecheck, test, build).

@alphaolomi
alphaolomi merged commit 3e5d554 into main Nov 21, 2026
4 checks passed
@alphaolomi
alphaolomi deleted the ci/publish-workflow branch November 21, 2026 12:47
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