Skip to content

npm run fetch-changelog fails on a fresh clone #693

Description

@Anshumancanrock

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions