Skip to content

feat(node-gha,github-action): support Node.js GitHub Action releases#151

Merged
dangreen merged 1 commit into
mainfrom
feat/node-gha-action-releases
Jun 29, 2026
Merged

feat(node-gha,github-action): support Node.js GitHub Action releases#151
dangreen merged 1 commit into
mainfrom
feat/node-gha-action-releases

Conversation

@dangreen

Copy link
Copy Markdown
Member

No description provided.

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 28377826404

Coverage increased (+1.3%) to 63.003%

Details

  • Coverage increased (+1.3%) from the base build.
  • Patch coverage: 3 uncovered changes across 2 files (46 of 49 lines covered, 93.88%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
packages/node-gha/src/project.ts 4 2 50.0%
packages/node-gha/src/publish.ts 45 44 97.78%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 832
Covered Lines: 584
Line Coverage: 70.19%
Relevant Branches: 460
Covered Branches: 230
Branch Coverage: 50.0%
Branches in Coverage %: Yes
Coverage Strength: 9.87 hits per line

💛 - Coveralls

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new @simple-release/node-gha package to publish “GitHub Action style” release refs (latest/major branches and version tags) and wires it into repo docs/workspace metadata. Also adjusts the GitHub Action releaser step order so “release” happens after “publish” (consistent with publishing/updating refs before creating a GitHub release).

Changes:

  • Introduce @simple-release/node-gha (project wrapper, publish implementation, config, linting, and tests).
  • Update the GitHub Action releaser pipeline to run .publish() before .release().
  • Update root README and pnpm-lock.yaml to include the new package.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Adds @simple-release/node-gha to the package list and badge references.
pnpm-lock.yaml Adds workspace importer entry for packages/node-gha and updates a dev dependency lock entry.
packages/node-gha/tsconfig.json Adds package TS config (matches existing package pattern).
packages/node-gha/tsconfig.build.json Adds build TS config for emitting to dist.
packages/node-gha/src/publish.ts Implements publishing logic for latest/major branches and version tags, with optional build + staging/amend.
packages/node-gha/src/publish.spec.ts Adds unit tests covering default and customized ref publishing behavior.
packages/node-gha/src/project.ts Adds NodeGhaProject wrapper around PackageJsonProject publish step.
packages/node-gha/src/index.ts Exports package public API.
packages/node-gha/README.md Documents install/usage and publish options.
packages/node-gha/package.json Defines new package metadata/scripts/deps.
packages/node-gha/oxlint.config.ts Adds per-package oxlint config extending repo defaults.
packages/github-action/src/releaser.ts Reorders release pipeline to publish before creating the GitHub release.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

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

? options.build
: [options.build]
: []
const files = options.files || pkg.files as string[] || []
expect(refHash(latestRef)).toBe(refHash(majorRef))
expect(refHash(latestRef)).toBe(refHash(tagRef))
expect(await project.gitClient.exec('show', 'v2.5.0:dist/index.js')).toBe('built')
expect(await project.gitClient.getCurrentBranch()).toBe('master')
@dangreen dangreen merged commit 11a644f into main Jun 29, 2026
7 checks passed
@dangreen dangreen deleted the feat/node-gha-action-releases branch June 29, 2026 14:10
@github-actions github-actions Bot mentioned this pull request Jun 29, 2026
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.

3 participants