Skip to content

Commit d895702

Browse files
chore(client-common): drop head pre-release publish job (#928)
## Summary Removes the `head` publish job from the deprecated `@clickhouse/client-common` publish workflow (`.github/workflows/publish-client-common.yml`). `@clickhouse/client-common` is deprecated — the `client` and `client-web` packages now bundle the common sources directly from `packages/client-common/src`. There's no longer a need to cut per-commit `-head.*` pre-releases from the release branch for this package. The `publish` job (the manual `workflow_dispatch` release) is left intact. ## Test plan - [ ] CI passes (workflow YAML lint) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 04601f9 commit d895702

1 file changed

Lines changed: 0 additions & 36 deletions

File tree

.github/workflows/publish-client-common.yml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -53,42 +53,6 @@ env:
5353
NPM_CONFIG_FETCH_TIMEOUT: "600000"
5454

5555
jobs:
56-
head:
57-
name: "Publish @clickhouse/client-common (head)"
58-
if: github.ref == 'refs/heads/release' && github.event_name == 'push'
59-
runs-on: ubuntu-latest
60-
environment: npm-publish
61-
steps:
62-
- name: Checkout repository
63-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
64-
65-
- name: Setup Node.js
66-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
67-
with:
68-
node-version: 24
69-
registry-url: "https://registry.npmjs.org"
70-
71-
- name: Install dependencies
72-
run: npm ci
73-
74-
- name: Set head pre-release version
75-
run: |
76-
BASE_VERSION=$(node -p "require('./packages/client-common/package.json').version")
77-
HEAD_VERSION="${BASE_VERSION}-head.${GITHUB_SHA::7}.${GITHUB_RUN_ATTEMPT}"
78-
echo "Setting version to: $HEAD_VERSION"
79-
npm --workspace @clickhouse/client-common version --no-git-tag-version "$HEAD_VERSION"
80-
echo "export default \"$HEAD_VERSION\";" > packages/client-common/src/version.ts
81-
82-
- name: Build the package
83-
run: npm --workspace @clickhouse/client-common run build
84-
85-
- name: Publish @clickhouse/client-common with head tag
86-
run: |
87-
npm --workspace @clickhouse/client-common publish \
88-
--access public \
89-
--provenance \
90-
--tag head
91-
9256
publish:
9357
name: "Publish @clickhouse/client-common (deprecated)"
9458
if: github.ref == 'refs/heads/release' && github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)