Skip to content

Add semantic-release GitHub Action for automated publishing#4

Merged
moufmouf merged 5 commits intomasterfrom
copilot/add-github-action-semantic-release
Dec 21, 2025
Merged

Add semantic-release GitHub Action for automated publishing#4
moufmouf merged 5 commits intomasterfrom
copilot/add-github-action-semantic-release

Conversation

Copy link

Copilot AI commented Dec 20, 2025

Automates package versioning and publishing to npm using semantic-release based on conventional commit messages.

Implementation

  • .releaserc.json: Configures semantic-release with standard plugins (commit-analyzer, release-notes-generator, npm, github)
  • .github/workflows/release.yml: Workflow triggered after CI passes on master branch
    • Builds package with TypeScript
    • Runs npx semantic-release to determine version, publish to npm, and create GitHub release
  • RELEASING.md: Documents conventional commit format and setup requirements

Setup Required

Add NPM_TOKEN secret to repository settings for npm publishing. GITHUB_TOKEN is provided automatically.

Versioning

Version bumps are determined by commit messages:

  • feat: → minor bump
  • fix: → patch bump
  • feat!: or BREAKING CHANGE: → major bump
Original prompt

Add a Github action that builds and publishes the package using semantic-release


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add GitHub action for building and publishing package Add semantic-release GitHub Action for automated publishing Dec 20, 2025
Copilot AI requested a review from moufmouf December 20, 2025 14:32
Copilot AI and others added 4 commits December 20, 2025 17:51
Co-authored-by: moufmouf <1290952+moufmouf@users.noreply.github.com>
Co-authored-by: moufmouf <1290952+moufmouf@users.noreply.github.com>
Co-authored-by: moufmouf <1290952+moufmouf@users.noreply.github.com>
@moufmouf moufmouf force-pushed the copilot/add-github-action-semantic-release branch from 5780f00 to e86f031 Compare December 21, 2025 13:31
@moufmouf moufmouf marked this pull request as ready for review December 21, 2025 13:47
@moufmouf moufmouf merged commit c845720 into master Dec 21, 2025
1 check passed
@moufmouf moufmouf deleted the copilot/add-github-action-semantic-release branch December 21, 2025 13:48
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.

2 participants