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: resolve static files not being built #766

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

charlie0129
Copy link
Member

Signed-off-by: Charlie Chiang charlie_c_0129@outlook.com

Apparently, this workflow is broken:
image

This is caused by this commit (removed the build commands): 0c33aa3

This pr restores build commands.

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
@@ -57,7 +57,8 @@ jobs:
git config --global user.email "actions@github.com"
git config --global user.name "gh-actions"
yarn add nodejieba
yarn install --frozen-lockfile
yarn install --frozen-lockfile --production=false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
yarn install --frozen-lockfile --production=false
yarn install --frozen-lockfile --production=true

Should we mark the production to be true?

Copy link
Member Author

@charlie0129 charlie0129 Jun 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be true, otherwise it will not install devDependencies (thus will not build anything). This parameter is added to tell yarn to install devDependencies, preventing accidental NODE_ENV=production causing build issues. The final product is not affected.

https://classic.yarnpkg.com/lang/en/docs/cli/install/
image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, there is no devDependencies in this repo lol (which --production makes no difference). This is just some practice commonly used in CIs.

Copy link
Contributor

@wonderflow wonderflow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job

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.

2 participants