From 30fa0fe719a2ab94966eda1e87803598a44eb736 Mon Sep 17 00:00:00 2001 From: gnikit Date: Tue, 27 Sep 2022 14:42:50 +0100 Subject: [PATCH] ci: disable autoincrementation of version --- .github/workflows/publish.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 82839e8b..a9354ef9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,20 +31,20 @@ jobs: # Commit the new version to the repository default branch and update the tag # This removes the signing of the commit, tag and release since it's # created by the GitHub Actions bot - - name: Update package.json version - if: startsWith(github.ref, 'refs/tags/v') - run: | - git config user.name github-actions - git config user.email 41898282+github-actions[bot]@users.noreply.github.com - git switch -c tmp - git add package.json - git commit -m "ci: update version to ${GITHUB_REF_NAME:1}" - git fetch - git switch main - git merge tmp - git tag -f $GITHUB_REF_NAME - git push origin -f $GITHUB_REF_NAME - git push origin -f main + # - name: Update package.json version + # if: startsWith(github.ref, 'refs/tags/v') + # run: | + # git config user.name github-actions + # git config user.email 41898282+github-actions[bot]@users.noreply.github.com + # git switch -c tmp + # git add package.json + # git commit -m "ci: update version to ${GITHUB_REF_NAME:1}" + # git fetch + # git switch main + # git merge tmp + # git tag -f $GITHUB_REF_NAME + # git push origin -f $GITHUB_REF_NAME + # git push origin -f main # Upload the artifact as a release asset - uses: softprops/action-gh-release@master