Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test version compute #490

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
3 changes: 0 additions & 3 deletions .autorc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"author": "Neurobagel Bot <[email protected]>",
"noVersionPrefix": false,
"plugins": [
"git-tag",
"released",
"first-time-contributor",
[
"omit-commits",
{
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
with:
fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}

- name: Fetch all tags and branches
run: |
git fetch --tags
git fetch origin '+refs/heads/*:refs/remotes/origin/*'

- name: Download latest auto
run: |
Expand All @@ -38,7 +43,19 @@ jobs:
run: |
LATEST_TAG=$(curl -fsSL https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV


- name: Figure out new version
id: figure-out-version
run: |
my_version="$(~/auto version --from ${{ env.LATEST_TAG }})"
my_release="$(~/auto release --dry-run)"
my_shipit="$(~/auto shipit --dry-run)"
echo "my_version=$my_version"
echo "my_release=$my_release"
echo "my_shipit=$my_shipit"
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

- name: Compute increment
id: compute-increment
run: |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-query-tool",
"private": true,
"version": "v0.9.3",
"version": "v0.9.4",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
Loading