How to make Node.js applications greatly improve CI/CD execution efficiency in GitHub Action

227678940-e043cdd6-180d-4fb3-b3f7-874810

I have a Next.js application at hand. In the process of setting GitHub Action’s CI/CD to automatically deploy to Azure Web App, it took a lot of time to upload node_modules folder in CI’s actions/upload-artifact@v2 step The file in is really inefficient. Therefore, I changed to compress the entire directory before uploading. As a result, the overall CI/CD time was directly reduced from 26m 34s to 8m 58s , and the deployment efficiency was greatly improved. In today’s article, I will talk about my writing method.

continue reading

This article is transferred from https://blog.miniasp.com/post/2023/03/25/Improve-GitHub-Actions-workflow-by-archive-files-before-upload-artifact
This site is only for collection, and the copyright belongs to the original author.