Astro-Workflow

Workflow
Section titled “Workflow”- An Astro workspace needs to be created on Desktop. Run:
npm create astro@latestDecide what sort of Astro local repo you want to build. The Terminal will give you a few options. In my version of the N&P site, I chose the Starlight Docs option.
If this doesn’t execute correctly because of missing dependencies, go to the newly created directory derived from the previous CLI, then run:
npm installIf this runs correctly, the terminal screen should prompt you to run;
npm auditNow run the following:
cd <your-new project-name> (the folder that Astro named just before)npm run devTerminal should display your Localhost website:
http://localhosts:4321- Create a new repo on GitHub.
- Run the GitHub script on your Desktop terminal.
from your new local directory:
echo "# test" >> README.mdgit initgit add README.mdgit commit -m "first commit"git branch -M maingit remote add origin git@github.com:glorydazer63/<your new project name>.gitgit push -u origin mainThe content should now reside with the Repo
Configure the Repo
Section titled “Configure the Repo”- A ‘deploy.yml’ script needs to be added to GitHub actions. This script needs to show a Node.JS build beyond v20, as that is now deprecated. As at August 2026, the latest version is v26.
- Go to Settings > Pages. Set the runtime to ‘GitHub Actions’ not Branch Main’.
- Once this is done, GitHub will begin publishing.
Integrate to Netlify
Section titled “Integrate to Netlify”- Add a GitHub Action (netlify).
Netlify Build Process
Section titled “Netlify Build Process”- Link to GitHub repo.
- Create a Build project.
- Set Deploy Build steps
- Astro build, or npm run build
- Set Pub dir = dist
- Check Deploy run.
- Check published Site
How to Apply Astro Themes
Section titled “How to Apply Astro Themes”Details to follow.