peaceiris / actions-gh-pages

GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.
https://github.com/marketplace/actions/github-pages-action
MIT License
4.72k stars 374 forks source link

refactor: prefer Node.js built-in fs method #1089

Open SukkaW opened 2 months ago

SukkaW commented 2 months ago

The PR re-implements #1072.

Since the action has been updated to Node.js 20, it is safe to use Node.js built-in fs methods to replace shelljs. Fewer dependencies result in faster boot-up speed.

The shelljs has been moved to devDependencies. The unit test cases have not been touched to make sure all the behavior remains the same.