Skip to content

Commit

Permalink
ci: disable autoincrementation of version
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Sep 27, 2022
1 parent 27e1165 commit 30fa0fe
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30fa0fe

Please sign in to comment.