From fab6c40763fba772731bce58e6bb4251af5024de Mon Sep 17 00:00:00 2001 From: Scott Date: Mon, 29 Jan 2024 07:06:15 -0500 Subject: [PATCH] ci: added step to change Cargo.toml app version to the latest tag version without the v --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 83f64ec..5cf1b83 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,15 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} release_branches: rolling + - name: get-app-version + id: package-version + run: | + LF_VERSION=$(cat package.json | jq -r '.version') + echo "current-version=$LF_VERSION" >> "$GITHUB_OUTPUT" + - name: update cargo.toml + run: | + appversion=$(${{ steps.version-bump.outputs.new_tag }} | sed 's/[v]//') + sed -i -e "s/^version = .*/version = \"$appversion\"/" Cargo.toml - name: Create Release uses: softprops/action-gh-release@v1 with: