ci: add unified autoupdate-with-claude flow#1
Merged
Conversation
This repo had no autoupdate flow before. Adapts the unified template: - autoupdate.yml: weekly cron, GITHUB_TOKEN, dispatches test.yml + claude.yml. builds-and-checks: typecheck, format:check, build, test (no lint script in this repo). - claude.yml: workflow_dispatch + comment-mention paths. Prep-prompt mentions the existing CLAUDE.md Zod / Anthropic-structured-output guardrails so future Claude sessions don't regress them. - test.yml (the existing CI workflow): keep structure, add Node 22/24 matrix. - release.yml: bump setup-node@v6 -> @v4 for runner-externals consistency. Otherwise untouched (npm Trusted Publisher chain preserved). - CLAUDE.md: extend existing rules with autoupdate-PR section + CI quirks. No release-on-version-bump.yml - release.yml's workflow_run + npm-view-skip already handles the publish-on-version-bump invariant. No .npmignore - package.json `files` already whitelists only dist + README.
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.
Summary
Adds the unified
autoupdate-with-claudeflow. This repo did not have an existing autoupdate workflow (skill prerequisite waived per maintainer), so this is a fresh install rather than a replacement.Notable differences from sibling repos
lintscript. This repo usesprettier --check(format:check) +tsc --noEmit(typecheck) instead of ESLint.builds-and-checksistypecheck + format:check + build + test.pr-checks.yml. The existingtest.yml(workflow nameCI) already covers the equivalent.autoupdate.ymldispatchestest.ymldirectly after PR creation.test.ymlgains a Node[22, 24]matrix.release-on-version-bump.yml. The existingrelease.yml(npm Trusted Publisher, fires viaworkflow_runafter CI on main) already handles publish-on-version-bump correctly via thenpm view ... versionskip-if-already-published check. Adding a parallel tag-recreate workflow would race with it..npmignorechange.package.jsonfiles: ["dist", "README.md"]already whitelists exactly what ships, soCLAUDE.mdis excluded by default.Files
.github/workflows/autoupdate.yml— new.github/workflows/claude.yml— new.github/workflows/test.yml— updated (Node 22/24 matrix).github/workflows/release.yml— updated (setup-node@v6→@v4for runner-externals consistency; otherwise unchanged)CLAUDE.md— updated. Preserves existing Zod / Anthropic-structured-output guardrails and adds the autoupdate-PR section + CI quirks.Prereqs
dudko-dev/agentCLAUDE_CODE_OAUTH_TOKENsecret presentNPM_TOKENsecret continues to be required forrelease.yml(carried over)Test plan
CI(test.yml) green on this PR.Generated by Claude Code