diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 50af08f..f35f705 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.releaserc b/.releaserc index 20cfc27..3be5242 100644 --- a/.releaserc +++ b/.releaserc @@ -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",