Skip to content

Commit

Permalink
Merge pull request Sefaria#1742 from Sefaria/helm-monorepo-release
Browse files Browse the repository at this point in the history
ci: use monorepo semantic extention to filter for commits affecting h…
  • Loading branch information
edamboritz authored Feb 19, 2024
2 parents dcebe76 + a579bde commit 54f78cb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ jobs:
id: semantic
with:
working_directory: ./helm-chart
semantic_version: 18.0.1
extra_plugins: |
[email protected]
@semantic-release/[email protected]
[email protected]
@semantic-release/[email protected]
extends: |
semantic-release-monorepo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup
Expand Down
8 changes: 8 additions & 0 deletions helm-chart/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "helm-chart",
"dependencies": {
"@semantic-release/commit-analyzer": "^10.0.1",
"conventional-changelog-conventionalcommits": "^6.1.0",
"semantic-release-monorepo": "^7.0.5"
}
}
13 changes: 2 additions & 11 deletions helm-chart/release-rules.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash

cat << EOF > helm-chart/.releaserc
extends:
- semantic-release-monorepo
tagFormat: helm-chart-\${version}
plugins:
- - "@semantic-release/commit-analyzer"
- preset: "conventionalcommits"
releaseRules:
- {"type": "helm", "release": "minor" }
- {"type": "helm", "scope": "fix", "release": "patch" }
- {"type": "feat", "release": "minor"}
- {"type": "fix", "release": "patch"}
- {"type": "chore", "release": "patch"}
Expand All @@ -25,15 +25,6 @@ plugins:
presetConfig:
"types":
- {"type": "helm", "section": "Helm Chart Changes"}
- {"type": "feat", "hidden": true}
- {"type": "fix", "hidden": true}
- {"type": "chore", "hidden": true}
- {"type": "docs", "hidden": true}
- {"type": "style", "hidden": true}
- {"type": "refactor", "hidden": true}
- {"type": "perf", "hidden": true}
- {"type": "test", "hidden": true}
- {"type": "static", "hidden": true}
- - "@semantic-release/github"
- "successComment": false
EOF
Expand Down

0 comments on commit 54f78cb

Please sign in to comment.