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

Fix action main to use packaged distributable #59

Merged
merged 2 commits into from
Oct 22, 2022
Merged

Conversation

vlaurin
Copy link
Owner

@vlaurin vlaurin commented Oct 22, 2022

Fixes #58

This ensures that the action solely relies on the minimised distributable and not on elements from node_modules/ directory which is not checked in.

This ensures the automated tests exactly replicates the way the action is used in consumer's workflows.
The action must solely rely on the minimised distributable and not on dependencies from node_modules/ as the node_modules/ folder is not checked in.
Resolves #58

When @vercel/ncc was introduced, the action main should have been updated to `dist/index.js` which has
all the dependencies packaged and minimised and thus doesn't rely on the presence of node_modules/
@vlaurin vlaurin force-pushed the 58-module-not-found branch from 6822916 to d43f7fb Compare October 22, 2022 13:16
@vlaurin vlaurin changed the title Clear node modules in CI Fix action main to use packaged distributable Oct 22, 2022
@vlaurin vlaurin marked this pull request as ready for review October 22, 2022 13:18
@vlaurin vlaurin merged commit 09ea8fd into main Oct 22, 2022
@vlaurin vlaurin deleted the 58-module-not-found branch October 22, 2022 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Cannot find module '@actions/core'
1 participant