Tried to run the release step on a clean checkout and it just falls over:
$ git clone https://github.com/Project-HAMi/website && cd website
$ npm run fetch-changelog 2.6.0
Failed to update authors.json file: Error: ENOENT: no such file or directory,
open '.../website/changelog/source/authors.json'
at updateAuthorsJson (src/scripts/fetch-changelog.js:208:31)
$ echo $?
1
CHANGELOG.md doesn't get touched at all. The GitHub side is fine, it pulls the release and
finds the contributors, then dies on the very last step.
updateAuthorsJson() does a plain readFileSync on changelog/source/authors.json with no
existence check, and the catch re-throws, so main() gives up before createVersionChangelog()
ever runs.
changelog/source/ is gitignored and only ever created by the changelog plugin during a build,
so it isn't there on a fresh clone or in CI. It was a tracked file until 1c3ad43a gitignored
it and deleted it, and the script never got updated to match.
Tried to run the release step on a clean checkout and it just falls over:
CHANGELOG.mddoesn't get touched at all. The GitHub side is fine, it pulls the release andfinds the contributors, then dies on the very last step.
updateAuthorsJson()does a plainreadFileSynconchangelog/source/authors.jsonwith noexistence check, and the catch re-throws, so
main()gives up beforecreateVersionChangelog()ever runs.
changelog/source/is gitignored and only ever created by the changelog plugin during a build,so it isn't there on a fresh clone or in CI. It was a tracked file until
1c3ad43agitignoredit and deleted it, and the script never got updated to match.