Skip to content

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

- 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
@timmywil timmywil deleted the release branch July 17, 2024 13:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

2 participants