Skip to content

Add GitHub Actions workflow to publish to npm on merge to master#363

Open
denizak wants to merge 2 commits intomasterfrom
github-action-publish-npm
Open

Add GitHub Actions workflow to publish to npm on merge to master#363
denizak wants to merge 2 commits intomasterfrom
github-action-publish-npm

Conversation

@denizak
Copy link
Contributor

@denizak denizak commented Mar 12, 2026

Automatically publishes the package to npmjs when changes are merged to master. Includes a version check that skips publish if the version in package.json already exists on npm, so only merges with a version bump trigger a release.

Automatically publishes the package to npmjs when changes are merged to master. Includes a version check that skips publish if the version in package.json already exists on npm, so only merges with a version bump trigger a release.
@denizak denizak requested a review from a team as a code owner March 12, 2026 09:52
@denizak denizak marked this pull request as draft March 12, 2026 09:53
  - Reuse shared setup action instead of manual corepack/node/yarn steps
  - Remove explicit yarn prepack (npm publish runs it automatically)
  - Simplify to npm publish --access public
  - Add GitHub release step using softprops/action-gh-release@v2
  - Run publish only after Library workflow succeeds via workflow_run
@denizak denizak marked this pull request as ready for review March 12, 2026 14:07
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