How to Use GitHub Actions to Format Code with Prettier
In this video, David, Sr. Technical Consultant at Mayan Technologies, dives into the power of GitHub Actions for automating code formatting. If you’d like more information about how this feature or other tools that can support your business, reach out to us at https://www.mayantechs.com/lets-talk. Learn how to streamline your coding workflow with two distinct methods: one that creates a pull request (PR) for formatted changes, and another that directly commits updates to the main branch. David walks you through the setup of YAML workflows, explains how to integrate tools like Node.js and Prettier, and demonstrates the entire process—from triggering actions on a push to verifying the formatted changes. Whether you're a developer looking to enhance your team's productivity or an automation enthusiast eager to simplify repetitive tasks, this video is for you. Discover how to maintain clean, consistent code with GitHub Actions and take your automation skills to the next level. Chapters: 0:00 – Introduction 0:28 - What is GitHub Actions? 0:38 - Overview of the two workflows 1:15 - Setting up workflows in the .github folder 2:07 - Automating code formatting with Prettier 5:05 - Running Prettier on all files 7:18 - Demonstrating the workflow in action 8:38 – Transitioning to the second workflow 10:00 – Verifying the changes 10:43 - Conclusion Don't forget to subscribe to our channel for more expert-led content on ERP solutions, and be sure to connect with us on social media: 🔹LinkedIn: linkedin.com/company/mayantechs 🔹Facebook: facebook.com/MayanTechnologies 🔹X (Twitter): x.com/mayantechs 🔹Instagram: https://www.instagram.com/mayantechnologies/ For inquiries, visit our website: https://www.mayantechs.com. Thank you for watching! Stay tuned for more valuable content.
Download
0 formatsNo download links available.