-
Notifications
You must be signed in to change notification settings - Fork 65.4k
Closed as not planned
Closed as not planned
Copy link
Labels
actionsThis issue or pull request should be reviewed by the docs actions teamThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamstaleThere is no recent activity on this issue or pull requestThere is no recent activity on this issue or pull requestwaiting for reviewIssue/PR is waiting for a writer's reviewIssue/PR is waiting for a writer's review
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 --productioncommand afternpm run test --if-presentto remove files installed asdevDependenciesmodules and which are unnecessary for production environment - Add zip command step (like
zip release.zip ./* -qr) to archive deployment files beforeupload artifactstep, and changeupload artifactstep inbuildjob andDeploy to Azure Web Appstep indeployjob 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
Metadata
Metadata
Assignees
Labels
actionsThis issue or pull request should be reviewed by the docs actions teamThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamstaleThere is no recent activity on this issue or pull requestThere is no recent activity on this issue or pull requestwaiting for reviewIssue/PR is waiting for a writer's reviewIssue/PR is waiting for a writer's review