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

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

Closed
SergK opened this issue Apr 27, 2024 · 0 comments
Closed

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

SergK opened this issue Apr 27, 2024 · 0 comments
Assignees
Labels
bug Something isn't working CodeMie

Comments

@SergK
Copy link
Member

SergK commented Apr 27, 2024

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.
@SergK SergK added bug Something isn't working CodeMie labels Apr 27, 2024
Rolika4 pushed a commit that referenced this issue Apr 29, 2024
@SergK SergK closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CodeMie
Projects
Development

No branches or pull requests

2 participants