Skip to content

Commit

Permalink
Another stab at automated versioning for manifest.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ohshazbot committed Jan 13, 2025
1 parent c691128 commit 1bfab82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
node-version: "lts/*"
- name: Install semantic-release
run: npm install -g semantic-release @semantic-release/github @semantic-release/commit-analyzer @semantic-release/git @semantic-release/release-notes-generator @semantic-release/changelog semantic-release-plugin-update-version-in-files
run: npm install -g semantic-release @semantic-release/github @semantic-release/commit-analyzer @semantic-release/git @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/exec node-jq
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
7 changes: 2 additions & 5 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
}
],
[
"semantic-release-plugin-update-version-in-files",
"@semantic-release/exec",
{
"files": [
"custom_components/fujitsu_airstage/manifest.json"
],
"placeholder": "0.0.0-development"
"prepareCmd": "npx node-jq '.version = \"nextRelease.version\"' custom_components/fujitsu_airstage/manifest.json"
}
],
"@semantic-release/github",
Expand Down

0 comments on commit 1bfab82

Please sign in to comment.