netlify / whalescale

2 stars 0 forks source link

Ignore dev dependencies from node_modules #2

Open vbrown608 opened 3 years ago

vbrown608 commented 3 years ago

We need to make node dependencies available to this Github action. Currently, I'm committing the node_modules directory, however dev dependencies not required at runtime will also be added to that directory.

One option is to use a tool to compile the code and dependencies into a single module https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/creating-a-javascript-action#commit-tag-and-push-your-action-to-github

erezrokah commented 3 years ago

Another is option is to switch to a docker action.

Might be too much for this action, but useful when trying to bundle dependencies that don't support it (like native modules).