-
Notifications
You must be signed in to change notification settings - Fork 48
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
Error: Cannot find module '@actions/core' #3
Comments
The documentation explicitly states that you need to commit your I also stumbled over this. I can imagine this is a) because of performance and b) to make sure everyone uses the exact same dependencies, so the action will always work the same way. |
The |
@alinnert The master branch has the latest code and is unstable to bind to since a breaking new major version may first get implemented in master. |
You could just get the action to install the dependencies, granted it isn't as fast but at least you don't need to commit dependencies. This worked for me. NPM looks after making sure everyone has the correct dependency version; that's what the lock file is for. |
@cjonasw How do I have the action load the dependencies? I'm assuming based on a Here's my PR. Is there a code snippet or something I need to add to the main JS file? EDIT: Oh, actually a little more googling found the answer, I believe! actions/typescript-action#4 (comment) is the answer! |
Do you mean not ignoring the why not install the dependencies, in your |
@xgqfrms The structure of this Also, this would make your action depend on npm. If npm is down your action doesn't work either. I can totally see why it has been done this way. |
Repo Steps:
The text was updated successfully, but these errors were encountered: