Skip to content

ci: add Windows CI and automated releases - #14

Merged
MstfSlm38 merged 7 commits into
26Q2.5from
ci/github-actions
Aug 27, 2026
Merged

MstfSlm38 merged 7 commits into
26Q2.5from
ci/github-actions

Conversation

@MstfSlm38

Copy link
Copy Markdown
Collaborator

What changed

  • add Windows GitHub Actions CI for 26Q2.5, main, and 26Q3 branches
  • install dependencies with npm ci
  • build the Electron Windows portable executable
  • upload the generated .exe as a CI artifact
  • add tag-based automated GitHub Releases for v* tags
  • add the missing dist:win npm script

Purpose

This makes CodeSnip builds reproducible and prepares the repository for protected-branch CI checks and automated releases.

@chatgpt-codex-connector

Copy link
Copy Markdown

💡 Codex Review

https://github.com/MstfSlm38/CodeSnip/blob/c110240858d0ed4f3560d6f551d302c92ac8a849/.github/workflows/ci.yml#L36-L37
P1 Badge Declare electron-builder before invoking dist:win

In the new CI/release workflow path I checked, the runner does a clean npm ci and then runs npm run dist:win, but package.json does not declare electron-builder or electron as dependencies/devDependencies. Replaying that sequence from a clean archive of this commit leaves no node_modules/.bin/electron-builder, and the build step fails with electron-builder: not found, so both the Windows CI and tag release builds cannot produce artifacts until those build tools are installed from the manifest.


https://github.com/MstfSlm38/CodeSnip/blob/c110240858d0ed4f3560d6f551d302c92ac8a849/.github/workflows/npm-publish.yml#L19
P2 Badge Define a test script before running npm test

This release-created workflow gates publishing on npm test, but the manifest’s scripts only define start, dist, and dist:win; running npm test at this commit exits with Missing script: "test". As a result, every release event will stop in the build job and publish-npm will never run unless a test script is added or this step is removed.


https://github.com/MstfSlm38/CodeSnip/blob/c110240858d0ed4f3560d6f551d302c92ac8a849/package.json#L3
P2 Badge Use a SemVer-compatible package version

The new npm publishing workflow runs npm publish, but this changed manifest version is not accepted by npm for publication: npm publish --dry-run fails with Invalid version: "26Q2.5". Any release that gets past the build job will still fail to publish until the package version is changed to a SemVer value such as 2.0.5 or the npm publish workflow is disabled.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MstfSlm38
MstfSlm38 merged commit 3ef6b00 into 26Q2.5 Aug 27, 2026
1 check passed
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