Skip to content

Release: ensure builds have the proper version #5519

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

Merged
merged 2 commits into from
Jul 17, 2024
Merged

Conversation

timmywil
Copy link
Member

@timmywil timmywil commented Jul 15, 2024

Summary

I attempted the release this morning and noticed a couple things after the initial steps.

  1. The version was not set in the built files. VERSION needed to be set in the environment. The version is not available in script contexts at the init stage. This adds a full build to after:bump with the new version, which happens just before publishing to npm. I added cross-env to do this so it works on Windows as well.
  2. The last build to run in npm test was selector-native, so the main jquery.js file was not correct.

Also:

  • order hooks in execution order
  • upgrade actions in the new verify workflow
  • verify.js did not need to export and could be run from the file

Checklist

Sorry, something went wrong.

- order hooks in execution order
@timmywil timmywil added this to the 4.0.0 milestone Jul 15, 2024
@timmywil timmywil requested a review from mgol July 15, 2024 14:38
path: path.basename( dirent.path ),
contents: await readFile( path.join( dirent.path, dirent.name ), "utf8" )
path: path.basename( dirent.parentPath ),
contents: await readFile( path.join( dirent.parentPath, dirent.name ), "utf8" )
Copy link
Member Author

Choose a reason for hiding this comment

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

This was just because path was recently marked deprecated.

Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

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

It'd be a bit cleaner to have scripts (i.e. runnable files) separate from libraries (e.g. files exporting utilities). Not a huge concern, though.

@timmywil timmywil merged commit 3e612ae into jquery:main Jul 17, 2024
13 checks passed
@timmywil timmywil deleted the release branch July 17, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants