Skip to content

ci: add unified autoupdate-with-claude flow#1

Merged
siarheidudko merged 1 commit into
mainfrom
claude/add-autoupdate-with-claude
May 6, 2026
Merged

ci: add unified autoupdate-with-claude flow#1
siarheidudko merged 1 commit into
mainfrom
claude/add-autoupdate-with-claude

Conversation

@siarheidudko
Copy link
Copy Markdown
Member

Summary

Adds the unified autoupdate-with-claude flow. 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

  • No lint script. This repo uses prettier --check (format:check) + tsc --noEmit (typecheck) instead of ESLint. builds-and-checks is typecheck + format:check + build + test.
  • No pr-checks.yml. The existing test.yml (workflow name CI) already covers the equivalent. autoupdate.yml dispatches test.yml directly after PR creation. test.yml gains a Node [22, 24] matrix.
  • No release-on-version-bump.yml. The existing release.yml (npm Trusted Publisher, fires via workflow_run after CI on main) already handles publish-on-version-bump correctly via the npm view ... version skip-if-already-published check. Adding a parallel tag-recreate workflow would race with it.
  • No .npmignore change. package.json files: ["dist", "README.md"] already whitelists exactly what ships, so CLAUDE.md is 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@v4 for runner-externals consistency; otherwise unchanged)
  • CLAUDE.md — updated. Preserves existing Zod / Anthropic-structured-output guardrails and adds the autoupdate-PR section + CI quirks.

Prereqs

  • Claude GitHub App installed on dudko-dev/agent
  • CLAUDE_CODE_OAUTH_TOKEN secret present
  • NPM_TOKEN secret continues to be required for release.yml (carried over)

Test plan

  • CI (test.yml) green on this PR.
  • After merge: Actions → Autoupdate → Run workflow → clean no-op run.

Generated by Claude Code

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.
@siarheidudko siarheidudko merged commit cca7ea8 into main May 6, 2026
2 checks passed
@siarheidudko siarheidudko deleted the claude/add-autoupdate-with-claude branch May 6, 2026 18:30
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