Skip to content

Commit

Permalink
feat: added version bumper
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikMeinders committed Aug 8, 2024
1 parent 6c84ea1 commit fb95ef8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publishpio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v4
env:
GH_TOKEN: ${{ steps.load-github-credentials.outputs.HOMEBREW_TAP_GITHUB_TOKEN }}
#env:
# GH_TOKEN: ${{ steps.load-github-credentials.outputs.HOMEBREW_TAP_GITHUB_TOKEN }}

- name: Set up Python
if: steps.semantic.outputs.new_release_published == 'true'
Expand Down
4 changes: 3 additions & 1 deletion cicd/bump-version.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
v=$(git tag | cut -c2- )
echo Tag vesion is $v
echo Tag vesion is v$v

jq --arg new_version "$v" '.version = $new_version' library.json > tmp.$$.json && mv tmp.$$.json library.json

# Display version key of library.json

echo Library version $(jq .version library.json)
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
"build": {
"libArchive": false
}
}
}

0 comments on commit fb95ef8

Please sign in to comment.