From 005bacd5fcd41e9a227728b5dfde7e1a7421cdcc Mon Sep 17 00:00:00 2001 From: Charlie <2747302+CharlieC3@users.noreply.github.com> Date: Sat, 29 Jun 2024 22:35:08 -0400 Subject: [PATCH] ci: update cargo files using exec plugin (#2) --- .github/workflows/ci.yml | 2 +- .releaserc | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e10a6e8..f5d6c22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -183,8 +183,8 @@ jobs: extra_plugins: | @semantic-release/changelog@6.0.3 @semantic-release/git@10.0.1 + @semantic-release/exec@6.0.3 conventional-changelog-conventionalcommits@6.1.0 - @semantic-release-cargo/semantic-release-cargo runehook-build-publish: runs-on: ubuntu-latest diff --git a/.releaserc b/.releaserc index 111c7b0..0fccb50 100644 --- a/.releaserc +++ b/.releaserc @@ -27,7 +27,12 @@ "npmPublish": false } ], - "@semantic-release-cargo/semantic-release-cargo", + [ + "@semantic-release/exec", + { + "prepareCmd": "sed -i -e '1h;2,$H;$!d;g' -e 's@name = \"runehook\"\\nversion = \"[^\"]*\"@name = \"runehook\"\\nversion = \"${nextRelease.version}\"@g' Cargo.toml Cargo.lock" + } + ], "@semantic-release/github", "@semantic-release/changelog", [