:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
ci(quill): Automate version bump as part of the publish workflow (#62151)
mendral-app[bot]a32fd47e1af7
diff --git a/.github/workflows/publish-quill-npm.yml b/.github/workflows/publish-quill-npm.ymlindex d82fe1d494e1..aa86bd74d7c1 100644--- a/.github/workflows/publish-quill-npm.yml+++ b/.github/workflows/publish-quill-npm.yml@@ -13,7 +13,7 @@ on:- latestpermissions:- contents: read+ contents: writeconcurrency:group: ${{ github.workflow }}@@ -26,7 +26,7 @@ jobs:timeout-minutes: 15environment: Releasepermissions:- contents: read+ contents: writeid-token: writesteps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2@@ -44,6 +44,22 @@ jobs:- name: Ensure modern npm (OIDC trusted publishing support)run: npm install -g [email protected]+ - name: Bump versions+ env:+ NPM_TAG: ${{ inputs.tag }}+ run: |+ git config user.name "github-actions[bot]"+ git config user.email "github-actions[bot]@users.noreply.github.com"+ BUMP_TYPE=$( [ "$NPM_TAG" = "latest" ] && echo "patch" || echo "prerelease" )+ cd packages/quill/packages/tokens+ npm version "$BUMP_TYPE" --no-git-tag-version+ TOKENS_V=$(node -p "require('./package.json').version")+ echo "Bumped @posthog/quill-tokens to $TOKENS_V ($BUMP_TYPE)"+ cd ../quill+ npm version "$BUMP_TYPE" --no-git-tag-version+ QUILL_V=$(node -p "require('./package.json').version")+ echo "Bumped @posthog/quill to $QUILL_V ($BUMP_TYPE)"+- name: Install dependenciesrun: pnpm install --frozen-lockfile --filter "@posthog/quill..." --filter "@posthog/quill-tokens" --filter "@posthog/quill-charts..."@@ -123,6 +139,16 @@ jobs:run: |echo "summary=@posthog/quill-tokens@${TOKENS_VERSION}, @posthog/quill@${QUILL_VERSION}, @posthog/quill-charts@${CHARTS_VERSION}" >> $GITHUB_OUTPUT+ - name: Commit version bump+ run: |+ git add packages/quill/packages/tokens/package.json packages/quill/packages/quill/package.json+ TOKENS_V=$(node -p "require('./packages/quill/packages/tokens/package.json').version")+ QUILL_V=$(node -p "require('./packages/quill/packages/quill/package.json').version")+ git commit -m "chore(quill): bump quill-tokens to $TOKENS_V, quill to $QUILL_V [skip ci]"+ if ! git push; then+ echo "::warning::git push failed (likely branch protection). Versions were published successfully but package.json not updated in repo. A manual bump or PR may be needed."+ fi+- name: Notify Slackif: ${{ !cancelled() }}uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1