epam/edp-headlamp

GitHub Actions Failure: Missing "build" Script in package.json

Opened this issue · 0 comments

Describe the bug
The GitHub Actions workflow fails during the build process due to a missing "build" script in package.json. This issue prevents successful completion of the CI pipeline, affecting project development and deployment processes.

To Reproduce

What did you do?

  1. Triggered the GitHub Actions workflow by pushing commits to the repository.
  2. The workflow attempted to run npm run build.

What did you expect to see?

A successful execution of the build process within the GitHub Actions workflow.

What did you see instead? Under which circumstances?

The workflow failed with the following error message:
``
0s
Run npm run build
npm ERR! Missing script: "build"
npm ERR!
np... Transportation Authority (MTA). The MTA operates public transportation in the New York metropolitan area, providing service to nearly 15 million people across New York City, Long Island, southeastern New York State, and Connecticut.

Acceptance Criteria:

  • A "build" script is present in package.json and correctly configured for the project's build process.
  • The GitHub Actions workflow completes successfully, without encountering the missing script error.
  • Documentation (if necessary) is updated to reflect changes made to the build process or GitHub Actions configuration.

Implementation Plan:

  1. Investigate the current package.json to identify missing or misconfigured scripts.
  2. Add or modify the "build" script in package.json to ensure it meets the project's build requirements.
  3. Test the changes by re-running the GitHub Actions workflow.
  4. Update project documentation as necessary.