-
Notifications
You must be signed in to change notification settings - Fork 32
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: GitHub Workflow Fails to Publish to NPM
#139
Conversation
@kikuomax @gmercey Circle CI Build Error Now our The Logs
Note: When I run Some Questions
|
@wesdevpro
The latest
This error suggested that Bonus: we no longer need |
- In the GitHub workflow to run the test failed due to Vue version mismatch. Fixed the error by bumping `nuxt` to `v2.17.1`. However, upgrading `nuxt` caused another error that suggested a `jest` dependency did not understand prefixed Node packages; e.g., `node:util`. Fixes the error by bumping `jest` to `v29.7.0`.
- After upgrading `nuxt`, the OpenSSL workaround became unnecessary.
Fix: Fix: GitHub Workflow Fails to Publish to NPM (#139)
Codecov Report
@@ Coverage Diff @@
## master #139 +/- ##
============================================
- Coverage 100.00% 90.00% -10.00%
============================================
Files 1 2 +1
Lines 2 20 +18
Branches 0 5 +5
============================================
+ Hits 2 18 +16
- Misses 0 2 +2 see 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@kikuomax what is this? |
@wesdevpro I don't know. I followed the link "see 1 file ...", and it did not look a big deal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wesdevpro Looks good to me!
The Problem: The NPM publish workflow failed to run because no
package-lock.json
was present in the root directory. This should have been easily generated by runningnpm install
. However, there were some dependency issues involvingeslint
and some in house dependencies used for configuringeslint
in thenuxt-buefy
project.The Presented Solution (in this PR):
eslint-config-buefy
to the latest version (v0.0.3
)eslint
in thenuxt-buefy
project tov4.18.2
to solve the conflict to allownpm install
to generate thepackage-lock.json
filepackage-lock.json
in the event it is not pushed to GitHub.