Skip to content

Commit

Permalink
feat: Adding helm chart package setup (#853)
Browse files Browse the repository at this point in the history
Signed-off-by: Milos Backonja <milos.backonja@iohk.io>
  • Loading branch information
milosbackonja authored May 22, 2024
1 parent c5f5b3d commit 80ebe2d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Setup Helm
uses: azure/setup-helm@v3
with:
version: "3.12.2" # default is latest (stable)
id: install
- uses: crazy-max/ghaction-import-gpg@v3
id: import_gpg
with:
Expand Down
22 changes: 21 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,24 @@
"prepareCmd": "yq -i '.appVersion = \"${nextRelease.version}\"' ./infrastructure/charts/node/Chart.yaml"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "helm package -d infrastructure/charts -u infrastructure/charts/node"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "helm repo index --url \"https://raw.githubusercontent.com/input-output-hk/atala-prism/main/infrastructure/charts\" --merge index.yaml infrastructure/charts"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "yq -i -P infrastructure/charts/index.yaml"
}
],
[
"@semantic-release/changelog",
{
Expand All @@ -70,7 +88,9 @@
"CHANGELOG.md",
"package.json",
"package-lock.json",
"infrastructure/charts/node/Chart.yaml"
"infrastructure/charts/node/Chart.yaml",
"infrastructure/charts/index.yaml",
"infrastructure/charts/*.tgz"
],
"message": "chore(release): cut prism node ${nextRelease.version} release\n\n${nextRelease.notes}"
}
Expand Down

0 comments on commit 80ebe2d

Please sign in to comment.