CI: modernize actions, add release automation and Dependabot#2
Merged
Conversation
Build workflow: - Bump actions/checkout, actions/cache, actions/setup-node to v4; pnpm/action-setup to v4. - Bump Node.js 18 -> 22, pnpm 8 -> 10. - Bump ubuntu-22.04 -> ubuntu-24.04 and macos-13 -> macos-14 (the older images are on GitHub's deprecation path). - Trigger on push to main, PRs to main, tag pushes matching v*, and workflow_dispatch (manual trigger from the Actions tab). - Drop the `cargo update` step in each build so builds are reproducible against the committed Cargo.lock. Dependency bumps should come via Dependabot PRs, not silently on every push. New release job in the same workflow: - Runs only on tag pushes (refs/tags/v*). - Depends on all three platform builds. - Downloads their artifacts and publishes a GitHub Release with auto-generated notes and all binaries attached. - Uses least-privilege permissions (contents: write only for release). Dependabot config: - Weekly updates for cargo, npm (client/), and github-actions. - Group minor+patch bumps to keep PR noise down; majors surface individually so they get real review. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Housekeeping so the fork can actually build and cut its own releases.
Build workflow (
+ 'build.yml' +)+ 'main' +, PRs to+ 'main' +, tag pushes+ 'v*' +, and+ 'workflow_dispatch' +(manual runs from the Actions UI).+ 'actions/checkout' +,+ 'actions/cache' +,+ 'actions/setup-node' +and+ 'pnpm/action-setup' +to their v4 releases.+ 'ubuntu-22.04' +→+ 'ubuntu-24.04' +,+ 'macos-13' +→+ 'macos-14' +(older images are on GitHub's deprecation timer).+ 'cargo update' +step from every build. It silently upgraded transitive deps on every push; reproducibility should come from+ 'Cargo.lock' +, and any intentional dependency bumps should come through Dependabot PRs.Release job
+ 'refs/tags/v*' +push arrives.+ 'contents: write' +scoped to just this job (least-privilege).Dependabot (
+ '.github/dependabot.yml' +)+ 'cargo' +,+ 'npm' +(in+ 'client/' +), and+ 'github-actions' +.Explicitly does not touch upstream logic or dependencies. Anything beyond CI/security posture belongs in the other PRs on this fork.