Skip to content

created action for tag and release - #114

Merged
ramaghanta merged 3 commits into
mainfrom
release-action
Oct 26, 2026
Merged

ramaghanta merged 3 commits into
mainfrom
release-action

Conversation

@ramaghanta

Copy link
Copy Markdown
Contributor

closes #113

@ramaghanta ramaghanta self-assigned this Oct 26, 2026
Copilot AI lite review requested due to automatic review settings October 26, 2026 20:24
@github-actions

Copy link
Copy Markdown

Coverage after merging release-action into main will be

96.01%▴ +0.28%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src/check-dependencies
   check-dependencies.spec.ts100%100%100%100%
   check-dependencies.ts98.74%94.67%100%100%91, 156, 200, 200
src/check-imports
   package-lock-file-utility.spec.ts100%100%100%100%
   package-lock-file-utility.ts100%100%100%100%
   packages-not-allowed.spec.ts83.33%100%66.67%83.33%13–15
   packages-not-allowed.ts100%100%100%100%
src/check-label
   check-label-compare-match-semver.spec.ts100%100%100%100%
   check-label.spec.ts100%100%100%100%
   check-label.ts95.08%90%100%95.96%68–70, 78–80
src/check-pr-reviews
   check-pr-reviews.spec.ts100%100%100%100%
   check-pr-reviews.ts50.65%40%100%50.70%22–37, 41–59, 68–70
src/coverage-reporter
   html.spec.ts100%100%100%100%
   html.ts100%100%100%100%
   lcov.spec.ts100%100%100%100%
   lcov.ts93.72%90.91%80%94.44%117–127, 134
   tabulate.spec.ts100%100%100%100%
   tabulate.ts98.87%94.44%100%100%176, 176, 183
   utility.spec.ts100%100%100%100%
   utility.ts100%100%100%100%
src/github-api
   index-context.spec.ts100%100%100%100%
   index-publish-comment.spec.ts100%100%100%100%
   index-reviews.spec.ts100%100%100%100%
   index.spec.ts100%100%100%100%
   index.ts83.22%71.64%100%84.83%61, 70, 77–81, 98–103, 108–111, 126–128, 146–149, 179–184, 207–216, 235–238, 243–246, 265–268, 273–276, 287–290, 301–303, 311–313, 315–318, 341–343
src/prepare-beta
   package.spec.ts100%100%100%100%
   package.ts94.12%75%100%95.56%23–25
src/publish-beta
   files.spec.ts100%100%100%100%
   files.ts94.03%92.31%100%94%36–39
   package.spec.ts100%100%100%100%
   package.ts95.38%85.71%100%96.36%23–25
   publish.spec.ts100%100%100%100%
   publish.ts85.37%100%50%86.11%32–36
   validate-name-and-resource-length.spec.ts100%100%100%100%
   validate-name-and-resource-length.ts89.13%100%71.43%88.07%35–40, 103–109
src/release
   release.spec.ts99.13%97.22%100%99.28%92–94
   release.ts100%100%100%100%
src/update-dependencies
   client.spec.ts90.63%80%100%91.67%19–21
   client.ts60%66.67%50%60%12–13, 17–25
   issue-command.spec.ts100%100%100%100%
   issue-command.ts100%100%100%100%
   publish.spec.ts99.52%92.86%100%100%60
   publish.ts70.72%75%44.44%71.50%31–33, 40–42, 87, 90, 93, 133–138, 141–150, 153–170, 173–179, 182–191
   update-dependencies.spec.ts99.04%98.08%89.66%100%209
   update-dependencies.ts88.54%80%100%90.37%106, 132–134, 140, 140–143, 143–145, 164–166, 170–173, 175, 214–216, 221–223, 239–249, 252–254
src/validate-npm-package
   validate-npm-package.spec.ts99.19%96%95.24%100%30
   validate-npm-package.ts89.43%64%100%92.35%41, 62–70, 72, 89, 92–97, 113, 178–182

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.

🔵 Needs a closer look

The changes require final human review because they are too complex or risky for automated approval.

No open issues 🎉

What changed in this PR

This PR adds a reusable GitHub Action that creates a version tag and publishes a GitHub Release when a pull request is squash-merged into the repository’s default branch.

Changes:

  • Added release logic that validates the merge, reads the merged commit’s package version, creates or reuses the corresponding tag, and publishes or reuses a release.
  • Added comprehensive API-mocked tests covering successful releases, reruns, invalid states, permissions, and event validation.
  • Added action metadata, caller documentation, dependency updates, and a required CI result job.
File Description
src/​release/​release.ts Updated as part of this pull request.
src/​release/​release.spec.ts Updated as part of this pull request.
src/​release/​index.ts Updated as part of this pull request.
release/​README.md Updated as part of this pull request.
release/​action.yml Updated as part of this pull request.
package.json Updated as part of this pull request.
package-lock.json Updated as part of this pull request.
.github/​workflows/​ci.yml Updated as part of this pull request.

Review effort: Lite

@ramaghanta
ramaghanta requested a review from carlansley October 26, 2026 20:27
@ramaghanta
ramaghanta merged commit 0fb7038 into main Oct 26, 2026
12 checks passed
@ramaghanta
ramaghanta deleted the release-action branch October 26, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an action to tag and release squash-merged PRs

3 participants