Skip to content

Conversation

@nadalaba
Copy link
Contributor

@nadalaba nadalaba commented Aug 26, 2024

Description

  1. When updating the version, the script is getting current version from root package.json, but updating release/package.json, so root package.json never gets updated and minor will always be zero.
    Chosen solution was to get version from root, but update both.
    Other possible solution is to not use version in release/package.json at all (i.e, get and set version in root only).
    [EDIT]
    Solution changed to removing version from all package.json other than root one, and only get and update it in root.

  2. Change single quotes in nodemon --exec '...' to double quotes.
    releaseScript

  3. Changes in buildChangelog.getLog() are because some shells don't support evaluating subexpressions in $(...).

  4. Change root package.json version to current version.

  5. In commit titles, trailing parenthesis that are not usernames or PR numbers are being considered PRs. So now usernames get matched when they start with @ and PRs when they start with #.
    log

@monkeytypegeorge monkeytypegeorge added the packages Changes in local packages label Aug 26, 2024
@Miodec
Copy link
Member

Miodec commented Aug 26, 2024

Description

  1. When updating the version, the script is getting current version from root package.json, but updating release/package.json, so root package.json never gets updated and minor will always be zero.
    Chosen solution was to get version from root, but update both.
    Other possible solution is to not use version in release/package.json at all (i.e, get and set version in root only).

I would change it to only update the root package.json and remove the version numbes from others.

@Miodec Miodec added the waiting for update Pull requests or issues that require changes/comments before continuing label Aug 27, 2024
prs,
prs: prs || [],
body: body || "",
});
Copy link
Member

Choose a reason for hiding this comment

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

Have you tested this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it's tested.
It's not really needed (as far as my tests went), but I added it just for consistency with usernames.
If you can tell me what errors were you avoiding on 0a23897, maybe we can remove it from both usernames and prs.

Copy link
Member

@Miodec Miodec left a comment

Choose a reason for hiding this comment

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

Thanks

@Miodec Miodec merged commit faf522f into monkeytypegame:master Aug 28, 2024
@nadalaba nadalaba deleted the fix-release branch August 30, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages Changes in local packages waiting for update Pull requests or issues that require changes/comments before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants