Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ on:
push:
branches:
- main
paths:
- 'charts/*/Chart.yaml'

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -19,7 +21,18 @@ jobs:
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Dependencies
run: yarn
- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run chart-releaser job
if: steps.changesets.outputs.hasChangesets == 'false'
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.act/act.yaml
node_modules
2 changes: 1 addition & 1 deletion charts/hdx-oss-v2/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name: hdx-oss-v2
description: A Helm chart for HyperDX OSS V2
type: application
version: 0.5.1
appVersion: "1.0.0"
appVersion: 1.0.0
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "helm-charts",
"version": "0.5.1",
"main": "index.js",
"repository": "[email protected]:hyperdxio/helm-charts.git",
"author": "HyperDX",
"license": "MIT",
"scripts": {
"release": "changeset publish",
"version": "changeset version && npm run update-chart-versions",
"update-chart-versions": "node scripts/update-chart-versions.js"
},
"dependencies": {
"@changesets/cli": "^2.29.4",
"js-yaml": "^4.1.0"
}
}
13 changes: 13 additions & 0 deletions scripts/update-chart-versions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const fs = require("fs");
const yaml = require("js-yaml");
const { version } = require("../package.json");

// Update Chart.yaml files with the new version
const charts = ["./charts/hdx-oss-v2"];

charts.forEach((chartPath) => {
const chartFile = `${chartPath}/Chart.yaml`;
const chart = yaml.load(fs.readFileSync(chartFile, "utf8"));
chart.version = version;
fs.writeFileSync(chartFile, yaml.dump(chart));
});
Loading