: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
chore(cli): refresh stable installer release (#61896)
Catalin Irimie0dce3866712e
diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.ymlindex 9ace85cb70b6..a27bfe05f3b7 100644--- a/.github/workflows/release-cli.yml+++ b/.github/workflows/release-cli.yml@@ -497,16 +497,48 @@ jobs:# Remove the granular manifestsrm -f artifacts/*-dist-manifest.json- name: Create GitHub Release+ shell: bashenv:PRERELEASE_FLAG: "${{ fromJson(steps.host.outputs.manifest).announcement_is_prerelease && '--prerelease' || '' }}"ANNOUNCEMENT_TITLE: '${{ fromJson(steps.host.outputs.manifest).announcement_title }}'ANNOUNCEMENT_BODY: '${{ fromJson(steps.host.outputs.manifest).announcement_github_body }}'RELEASE_COMMIT: '${{ needs.release.outputs.release-commit }}'+ LATEST_RELEASE_TAG: posthog-cli-latestGH_TOKEN: ${{ steps.app-token.outputs.token }}run: |# Write and read notes from a file to avoid quoting breaking things- echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt- gh release create "${{ needs.plan-release.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*+ echo "$ANNOUNCEMENT_BODY" > "$RUNNER_TEMP/notes.txt"+ release_args=()+ if [ -n "$PRERELEASE_FLAG" ]; then+ release_args+=("$PRERELEASE_FLAG")+ fi++ gh release create "${{ needs.plan-release.outputs.tag }}" --target "$RELEASE_COMMIT" "${release_args[@]}" --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*++ if [ -z "$PRERELEASE_FLAG" ]; then+ STAGED_RELEASE_TAG="$LATEST_RELEASE_TAG-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"++ gh release delete "$STAGED_RELEASE_TAG" --yes --cleanup-tag || true+ gh release create "$STAGED_RELEASE_TAG" \+ --target "$RELEASE_COMMIT" \+ --title "posthog-cli latest (staged)" \+ --notes "Staged replacement for $LATEST_RELEASE_TAG; same as ${{ needs.plan-release.outputs.tag }}" \+ --latest=false \+ artifacts/*++ gh release view "$STAGED_RELEASE_TAG" --json assets --jq '.assets[].name' | grep -qx 'posthog-cli-installer.sh'++ gh release delete "$LATEST_RELEASE_TAG" --yes --cleanup-tag || true+ gh release edit "$STAGED_RELEASE_TAG" \+ --tag "$LATEST_RELEASE_TAG" \+ --target "$RELEASE_COMMIT" \+ --title "posthog-cli latest" \+ --notes "Same as ${{ needs.plan-release.outputs.tag }}" \+ --latest=false+ git push origin ":refs/tags/$STAGED_RELEASE_TAG" || true+ else+ echo "Skipping $LATEST_RELEASE_TAG update for prerelease ${{ needs.plan-release.outputs.tag }}"+ fipublish-npm:needs:diff --git a/cli/CONTRIBUTING.md b/cli/CONTRIBUTING.mdindex 2bf317d8d753..dd1d0cf42dc6 100644--- a/cli/CONTRIBUTING.md+++ b/cli/CONTRIBUTING.md@@ -20,7 +20,7 @@ After the pull request merges to `master`, the `Release CLI` workflow:4. Updates `cli/Cargo.toml`, `cli/Cargo.lock`, and `cli/CHANGELOG.md`5. Commits the release bump to `master`6. Runs cargo-dist against the release bump commit-7. Creates the `posthog-cli/vX.Y.Z` GitHub release and publishes the npm package+7. Creates the `posthog-cli/vX.Y.Z` GitHub release, refreshes `posthog-cli-latest` for stable releases, and publishes the npm packageDo not run `sampo publish`; cargo-dist owns publishing for `posthog-cli`.diff --git a/frontend/src/scenes/onboarding/error-tracking/OnboardingErrorTrackingSourceMapsStep.tsx b/frontend/src/scenes/onboarding/error-tracking/OnboardingErrorTrackingSourceMapsStep.tsxindex 033a5579bf9c..416e017f983f 100644--- a/frontend/src/scenes/onboarding/error-tracking/OnboardingErrorTrackingSourceMapsStep.tsx+++ b/frontend/src/scenes/onboarding/error-tracking/OnboardingErrorTrackingSourceMapsStep.tsx@@ -68,7 +68,7 @@ export const OnboardingErrorTrackingSourceMapsStep: OnboardingStepComponentType</p><CodeSnippet language={Language.Bash}>{[- "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/PostHog/posthog/releases/download/posthog-cli-v0.0.2/posthog-cli-installer.sh | sh",+ "curl --proto '=https' --tlsv1.2 -LsSf https://download.posthog.com/cli | sh",'posthog-cli-update',].join('\n')}</CodeSnippet>diff --git a/frontend/src/scenes/onboarding/error-tracking/source-maps/automated-technologies/IOSSourceMapsInstructions.tsx b/frontend/src/scenes/onboarding/error-tracking/source-maps/automated-technologies/IOSSourceMapsInstructions.tsxindex 53bbd80dd598..bbdb44bf35b2 100644--- a/frontend/src/scenes/onboarding/error-tracking/source-maps/automated-technologies/IOSSourceMapsInstructions.tsx+++ b/frontend/src/scenes/onboarding/error-tracking/source-maps/automated-technologies/IOSSourceMapsInstructions.tsx@@ -19,7 +19,7 @@ export function IOSSourceMapsInstructions(): JSX.Element {<h4 className="text-sm font-semibold mt-4 mb-2">curl:</h4><CodeSnippet language={Language.Bash}>{[- "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/PostHog/posthog/releases/latest/download/posthog-cli-installer.sh | sh",+ "curl --proto '=https' --tlsv1.2 -LsSf https://download.posthog.com/cli | sh",'posthog-cli-update',].join('\n')}</CodeSnippet>