Skip to content
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

Fix pre-build script invocation + Update release notes #1750

Merged
merged 2 commits into from
Oct 25, 2023
Merged

Conversation

didoo
Copy link
Contributor

@didoo didoo commented Oct 25, 2023

📌 Summary

Context:
screenshot_3204

Upon investigation, we have found that yarn does not execute the pre/post scripts automatically:

screenshot_3203

See: yarnpkg/yarn#800

From the Yarn documentation:

In particular, we intentionally don’t support arbitrary pre and post hooks for user-defined scripts

🛠️ Detailed description

In this PR I have:

  • updated the node scripts
  • re-run the scripts to update the “release notes” files

👀 Component checklist

💬 Please consider using conventional comments when reviewing this PR.

@didoo didoo requested review from Dhaulagiri and a team October 25, 2023 13:59
@vercel
Copy link

vercel bot commented Oct 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
hds-showcase ✅ Ready (Inspect) Visit Preview Oct 25, 2023 2:03pm
hds-website ✅ Ready (Inspect) Visit Preview Oct 25, 2023 2:03pm

"prebuild": "node lib/changelog/generate-changelog-markdown-files.mjs",
"build": "ember build --environment=production",
"generate-changelog-markdown-files": "node lib/changelog/generate-changelog-markdown-files.mjs",
"build": "yarn generate-changelog-markdown-files && ember build --environment=production",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious the thinking of including this in the build as well: is this a workaround for the fact that prebuild doesn't actually do anything? If we are updating this as part of the version step I think this would not actually ever trigger new changes. Am I thinking about that correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's just in case, until we find out if the yarn version works, then we can remove it

@didoo didoo merged commit 1e0fa16 into main Oct 25, 2023
12 checks passed
@didoo didoo deleted the fix-prescript branch October 25, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-website Content updates to the documentation website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants