Skip to content

chore(CI-CD): 🔧 switch to TSGo and fix release publishing#21

Merged
baxyz merged 4 commits into
mainfrom
switch-to-tsgo
Apr 2, 2026
Merged

chore(CI-CD): 🔧 switch to TSGo and fix release publishing#21
baxyz merged 4 commits into
mainfrom
switch-to-tsgo

Conversation

@baxyz

@baxyz baxyz commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • switch project type-checking from tsc --noEmit to tsgo --noEmit
  • update tsconfig.json for TSGo 7 compatibility
  • add missing publish:packages and publish:dry-run scripts
  • fix the release workflow to publish packages directly and support alpha/beta npm tags
  • update release workflow authentication and Node 24 action runtime handling
  • refresh README documentation

Validation

  • pnpm typecheck
  • pnpm test
  • pnpm build
  • pnpm publish:dry-run --tag beta

Notes

  • TSGo 7 now works for this project, including declaration generation support
  • the previous release workflow was failing in the publish phase; this PR fixes the publish path and prerelease tag selection

baxyz added 3 commits April 2, 2026 21:09
- add npm_tag input for publishing
- switch to actions/create-github-app-token
- change typecheck command to use tsgo
- add publish and dry-run scripts
- include @typescript/native-preview in dependencies
Copilot AI review requested due to automatic review settings April 2, 2026 21:23

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.

Pull request overview

This PR updates the project’s CI/CD and developer tooling to use TSGo for type-checking and to correct the npm publishing path in the release workflow, alongside a README refresh.

Changes:

  • Switch pnpm typecheck from tsc --noEmit to tsgo --noEmit and add the TSGo runtime dependency.
  • Update tsconfig.json to align with TSGo/TS 7 expectations.
  • Adjust the release workflow to publish packages directly (with latest/alpha/beta dist-tags) and update GitHub App token handling.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsconfig.json Updates compiler options intended for TSGo compatibility.
package.json Switches typecheck command to tsgo, adds publish scripts and TSGo-related dependency.
pnpm-lock.yaml Locks the added TSGo native preview dependency and platform-specific optional packages.
.github/workflows/release.yml Updates release dispatch inputs, token auth action, and publishing command/tag support.
README.md Restructures and expands documentation, adds badges and package list.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment on lines 193 to 199
- name: Publish to npm
run: |
if [[ "${{ inputs.dry-run }}" == "false" ]]; then
pnpm release:${{ inputs.version_type }}
pnpm publish:packages --tag "${{ inputs.npm_tag }}"
else
pnpm release:${{ inputs.version_type }} --dry-run
pnpm publish:packages --tag "${{ inputs.npm_tag }}" --dry-run
echo "⚠️ DRY-RUN: npm publish skipped"

Copilot AI Apr 2, 2026

Copy link

Choose a reason for hiding this comment

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

The publish job now runs pnpm publish:packages ..., but this script publishes from the ./build directory. This job does not run pnpm build and it only downloads package.json from the previous job, so build/ will likely be missing (or have the wrong version), causing publishing to fail. Consider either re-running pnpm build in the publish job after applying the version bump, or uploading/downloading the build/ artifacts from build-and-verify.

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment on lines +30 to +33
| Package | Description | Install |
|---------|-------------|---------|
| [`@helpers4/all`](https://www.npmjs.com/package/@helpers4/all) | Complete collection — all categories in one package | `npm i @helpers4/all` |
| [`@helpers4/array`](https://www.npmjs.com/package/@helpers4/array) | Array operations, chunking, comparison, and manipulation | `npm i @helpers4/array` |

Copilot AI Apr 2, 2026

Copy link

Choose a reason for hiding this comment

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

The packages table has an extra leading | on each row (|| ... |), which renders as an empty first column in Markdown on GitHub. Use a standard table format with a single leading pipe per row (e.g. | Package | Description | Install |).

Copilot uses AI. Check for mistakes.
@github-actions

github-actions Bot commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

✅ PR Validation Passed

All checks passed and coverage target reached!


📋 Pipeline Status

Job Status
🔢 Version passing
🏗️ Build passing
🧪 Tests passing
📝 Lint passing
📘 TypeCheck passing
🧾 Conventional Commits passing
🔗 Coherency passing

📊 Code Coverage

Overall Coverage: 100.0% — Target reached! 🎯

Metric Progress Coverage
Lines ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100%
Branches ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100%
Functions ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100%
Statements ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100%

🧬 Mutation Testing

🟡 Mutation Score: 88.38% — good

Metric Progress Score
🟡 Mutation Score ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░ 88.38%

🧬 Mutation testing is informational only and does not block the PR


ℹ️ About this report
  • 🎯 Coverage Target: 100% for all metrics
  • 🧬 Mutation Testing: powered by Stryker (non-blocking)
  • 🔄 This comment updates automatically with each push
  • 📈 Coverage is measured using Vitest + v8

🤖 Generated by @helpers4 CI • 2026-04-02

- upload build artifacts after verification
- download build artifacts before publishing
@baxyz baxyz merged commit bbfabb5 into main Apr 2, 2026
12 checks passed
@baxyz baxyz deleted the switch-to-tsgo branch April 2, 2026 21:39
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