GitHub actions workflows that use trunk branch fail when using npm version 7.6.0 #29528
Labels
[Type] Bug
An existing feature does not function as intended
[Type] Build Tooling
Issues or PRs related to build tooling
Description
When using npm version
7.6.0
in the workflowsCompressed Size / Check (pull_request)
andPerformances Tests / Run performance tests (pull_request)
, we checkouttrunk
but due to the recent changes limiting the version of npm to v6, the processes fails.Step-by-step reproduction instructions
<7
condition from the npm engine section ofpackage.json
file (example)npm install
trunk
branch (likeCompressed Size
):The code has to be placed after the checkout and npm cache restore, here is an example.
5. Push the changes
6. Create a test PR
7. Observe that the modified workflow is failing
Expected behaviour
GitHub actions workflows that use
trunk
branch should succeed.Actual behaviour
GitHub actions workflows that use
trunk
branch fail.Screenshots or screen recording (optional)
N/A
Code snippet (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: