mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to v2, this PR will be updated. ⚠️⚠️⚠️⚠️⚠️⚠️ `v2` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `v2`. ⚠️⚠️⚠️⚠️⚠️⚠️ # Releases ## @hyperdx/common-utils@0.2.0-beta.4 ### Minor Changes -79fe30f: Queries depending on numeric aggregates now use the type's default value (e.g. 0) instead of null when dealing with non-numeric data. ### Patch Changes -cfdd523: feat: clickhouse queries are by default conducted through the clickhouse library via POST request. localMode still uses GET for CORS purposes -92a4800: feat: move rrweb event fetching to the client instead of an api route -7f0b397: feat: queryChartConfig method + events chart ratio ## @hyperdx/api@2.0.0-beta.15 ### Minor Changes -79fe30f: Queries depending on numeric aggregates now use the type's default value (e.g. 0) instead of null when dealing with non-numeric data. ### Patch Changes -9a9581b: Adds external API for alerts and dashboards -293a2af: Adds openapidoc annotations for spec generation and swagger route for development -92a4800: feat: move rrweb event fetching to the client instead of an api route -7f0b397: feat: queryChartConfig method + events chart ratio -b4b5f6b: style: remove unused routes/components + clickhouse utils (api) - Updated dependencies [79fe30f] - Updated dependencies [cfdd523] - Updated dependencies [92a4800] - Updated dependencies [7f0b397] - @hyperdx/common-utils@0.2.0-beta.4 ## @hyperdx/app@2.0.0-beta.15 ### Patch Changes -7de8916: Removes trailing slash for connection urls -cfdd523: feat: clickhouse queries are by default conducted through the clickhouse library via POST request. localMode still uses GET for CORS purposes -6dc6989: feat: Automatically use last used source when loading search page -92a4800: feat: move rrweb event fetching to the client instead of an api route -7f0b397: feat: queryChartConfig method + events chart ratio -b4b5f6b: style: remove unused routes/components + clickhouse utils (api) - Updated dependencies [79fe30f] - Updated dependencies [cfdd523] - Updated dependencies [92a4800] - Updated dependencies [7f0b397] - @hyperdx/common-utils@0.2.0-beta.4 Co-authored-by: Warren <5959690+wrn14897@users.noreply.github.com>
118 lines
3.8 KiB
YAML
118 lines
3.8 KiB
YAML
name: Release
|
|
on:
|
|
push:
|
|
branches: [v2]
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
permissions:
|
|
contents: write
|
|
packages: write
|
|
pull-requests: write
|
|
jobs:
|
|
publish_common_utils:
|
|
name: Publish @hyperdx/common-utils
|
|
runs-on: ubuntu-24.04
|
|
outputs:
|
|
changeset_outputs_hasChangesets:
|
|
${{ steps.changesets.outputs.hasChangesets }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache-dependency-path: 'yarn.lock'
|
|
cache: 'yarn'
|
|
- name: Install root dependencies
|
|
run: yarn install
|
|
- name: Create Release Pull Request or Publish to npm
|
|
if: always()
|
|
continue-on-error: true
|
|
id: changesets
|
|
uses: changesets/action@v1
|
|
with:
|
|
commit: 'chore(release): bump HyperDX app/package versions'
|
|
title: 'Release HyperDX'
|
|
version: yarn run version
|
|
publish: yarn release
|
|
env:
|
|
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
release:
|
|
name: Release
|
|
needs: publish_common_utils
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
release:
|
|
- release-app
|
|
- release-otel-collector
|
|
- release-local
|
|
- release-local-ui
|
|
# - release-extended-app
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Load Environment Variables from .env
|
|
uses: xom9ikk/dotenv@v2
|
|
- name: Publish Images
|
|
if:
|
|
needs.publish_common_utils.outputs.changeset_outputs_hasChangesets ==
|
|
'false'
|
|
run: make ${{ matrix.release }}
|
|
notify_downstream:
|
|
name: Notify Downstream
|
|
needs: [publish_common_utils, release]
|
|
runs-on: ubuntu-24.04
|
|
if:
|
|
needs.publish_common_utils.outputs.changeset_outputs_hasChangesets ==
|
|
'false'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Load Environment Variables from .env
|
|
uses: xom9ikk/dotenv@v2
|
|
- name: Get Downstream App Installation Token
|
|
id: auth
|
|
uses: actions/create-github-app-token@v2
|
|
with:
|
|
app-id: ${{ secrets.DOWNSTREAM_CH_APP_ID }}
|
|
private-key: ${{ secrets.DOWNSTREAM_CH_APP_PRIVATE_KEY }}
|
|
owner: ${{ secrets.DOWNSTREAM_CH_OWNER }}
|
|
- name: Notify Downstream
|
|
uses: actions/github-script@v7
|
|
env:
|
|
TAG: ${{ env.IMAGE_VERSION }}${{ env.IMAGE_VERSION_SUB_TAG }}
|
|
with:
|
|
github-token: ${{ steps.auth.outputs.token }}
|
|
script: |
|
|
const { TAG } = process.env;
|
|
const result = await github.rest.actions.createWorkflowDispatch({
|
|
owner: '${{ secrets.DOWNSTREAM_CH_OWNER }}',
|
|
repo: '${{ secrets.DOWNSTREAM_DP_REPO }}',
|
|
workflow_id: '${{ secrets.DOWNSTREAM_DP_WORKFLOW_ID }}',
|
|
ref: 'main',
|
|
inputs: {
|
|
tag: TAG
|
|
}
|
|
});
|