Skip to content

Conversation

@rubenmarcus
Copy link
Contributor

@rubenmarcus rubenmarcus commented Feb 5, 2025

Closes #56

@rubenmarcus rubenmarcus self-assigned this Feb 5, 2025
Copy link
Member

@bh2smith bh2smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Way too many irrelevant changes. Looks a lot like the entire file was replaced with some AI proposed outdated new file.

SHORT_SHA=$(git rev-parse --short HEAD)
# TODO: make this dynamic https://github.com/BitteProtocol/make-agent/issues/56
BASE_VERSION="0.2.1" # Define a base version
BASE_VERSION=$(node -p "require('./package.json').version")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no good.

Please consider following the linked issue: #56

Also save this for another PR - it is an unrelated change.

package.json Outdated
"name": "make-agent",
"type": "module",
"version": "0.0.22-7",
"version": "0.2.3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will not be keeping this updated. We should not rely on it.

run: npm publish --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Copy link
Member

@bh2smith bh2smith Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New line at EOF!

Suggested change
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


jobs:
branch-release:
branch_release:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
branch_release:
branch-release:

Copy link
Member

@bh2smith bh2smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok every thing looks good now. Just a few nits and please add "Closes #56" to the PR description.

  1. branch-release
  2. New line at EOF.
  3. Just set the version in package.json to "0.0.0" to indicate it is not being used.

@rubenmarcus rubenmarcus merged commit 2da6879 into main Feb 5, 2025
2 checks passed
@rubenmarcus rubenmarcus deleted the branch-releases-fix branch February 5, 2025 13:32
This was referenced Feb 6, 2025
bh2smith added a commit that referenced this pull request Feb 6, 2025
Closes #72 and closes #60


The problem before was that we didn't fetch the history (i.e. fetch
depth 0)

See here that the correct version tag was detected: 


https://github.com/BitteProtocol/make-agent/actions/runs/13176723432/job/36777678912?pr=73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate BASE_VERSION

4 participants