Skip to content

Add workflow to pin @clickhouse/client to head and push release-test branch#2

Open
Copilot wants to merge 1 commit into
masterfrom
copilot/clickhouse-js-client-release-test
Open

Add workflow to pin @clickhouse/client to head and push release-test branch#2
Copilot wants to merge 1 commit into
masterfrom
copilot/clickhouse-js-client-release-test

Conversation

Copy link
Copy Markdown

Copilot AI commented May 29, 2026

Need a one-click way to validate the unreleased head build of @clickhouse/client end-to-end against this repo.

New manually-triggered workflow .github/workflows/clickhouse-js-client-head.yaml:

  • Rewrite dep: walks every tracked package.json (via git ls-files) and, in any of dependencies/devDependencies/peerDependencies/optionalDependencies, sets @clickhouse/client to the head dist-tag. Preserves the file's 4-space indent and trailing newline.
  • Refresh lockfile: runs npm install against the workspace using the Node version from .nvmrc.
  • Publish branch: commits the change as github-actions[bot] and force-pushes to clickhouse-js-client-release-test using the workflow's GITHUB_TOKEN (contents: write).

Today only packages/usage/package.json references the dep, but the script is repo-wide so new consumers are picked up automatically.

Trigger via Actions → "ClickHouse JS Client Head Release Test" → Run workflow.

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