From 6e5145c6a9643e34f144694c51e461695fa3b591 Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Sat, 13 Apr 2024 20:17:14 -0500 Subject: [PATCH] Update version before release --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e9578e..ddc344d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,10 +20,14 @@ jobs: with: cache: npm node-version-file: package.json + - run: | + sed -ri 's/"version": ".+"/"version": "${{ inputs.tag }}"/' package.json + sed -ri 's/setup-bazel@.+$/setup-bazel@${{ inputs.tag }}/g' README.md - run: npm install - run: npm run build - - run: git config user.name github-actions - - run: git config user.email github-actions@github.com + - run: | + git config user.name github-actions + git config user.email github-actions@github.com - run: git commit -am "Release ${{ inputs.tag }}" - run: git push - run: gh release create ${{ inputs.tag }} --generate-notes