Closed as not planned
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
The configuration has a possibility which makes GitHub Actions slower because the workflow uploads many files as an artifact which are installed by npm install
.
So let me suggest the following to improve the GitHub Actions performance:
- Add
npm prune --production
command afternpm run test --if-present
to remove files installed asdevDependencies
modules and which are unnecessary for production environment - Add zip command step (like
zip release.zip ./* -qr
) to archive deployment files beforeupload artifact
step, and changeupload artifact
step inbuild
job andDeploy to Azure Web App
step indeploy
job to use the zip file
The workflow applied the above improving points to is:
https://github.com/horihiro/20220504-githubactions-test/blob/main/.github/workflows/main_app-githubactions-test.yml
Additional information
No response
Activity