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

chore: install yarn deps in production mode #329

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

mfocko
Copy link
Member

@mfocko mfocko commented Sep 11, 2023

From the yarn docs:

Yarn will not install any package listed in devDependencies if the
NODE_ENV environment variable is set to production. Use this flag
to instruct Yarn to ignore NODE_ENV and take its production-or-not
status from this flag instead.

This should ensure that no development dependencies, such as surge, are installed at all in the image that we use for deployments.

Yet another follow-up to the vulnerability report for the MP+ deployment.

@mfocko mfocko self-assigned this Sep 11, 2023
@usercont-release-bot
Copy link

usercont-release-bot commented Sep 11, 2023

Preview: https://packit-dashboard-pr-329.surge.sh (deployed at Mon 11 Sep 2023, 17:54 UTC)

@softwarefactory-project-zuul
Copy link
Contributor

files/ansible/recipe.yaml Outdated Show resolved Hide resolved
From the yarn docs:

> Yarn will not install any package listed in `devDependencies` if the
> `NODE_ENV` environment variable is set to `production`. Use this flag
> to instruct Yarn to ignore `NODE_ENV` and take its production-or-not
> status from this flag instead.

This should ensure that no development dependencies, such as `surge`,
are installed at all in the image that we use for deployments.

Yet another follow-up to the vulnerability report for the MP+
deployment.

Co-authored-by: Eric Gustavsson <[email protected]>
Signed-off-by: Matej Focko <[email protected]>
@softwarefactory-project-zuul
Copy link
Contributor

@mfocko
Copy link
Member Author

mfocko commented Sep 12, 2023

@.SpyTec Sorry for the additional review request, but with the requested changes you blocked merging 😄

auto-merge was automatically disabled September 14, 2023 13:49

Merge queue setting changed

@mfocko mfocko merged commit c03e10f into packit:main Sep 14, 2023
1 check passed
@mfocko mfocko deleted the yarn-production-build branch September 14, 2023 13:50
@Venefilyn
Copy link
Collaborator

@.SpyTec Sorry for the additional review request, but with the requested changes you blocked merging 😄

There is a way to dismiss review requests just above the merge button :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants