Skip to content

Conversation

jp-knj
Copy link

@jp-knj jp-knj commented May 30, 2025

Add Deno support to GitHub Pages template

This pull request enhances the existing Astro GitHub Pages template by adding first-class support for building under Deno, in line with the upstream changes in [withastro/action#77](https://github.com/withastro/action/pull/77).

📝 What’s Changed

  1. Documentation
  • Added a “🔧 Enabling Deno Support” section with:
    • Add deno.json configuration
    • Explanation of the Deno task setup & build flow
    • Updated the project structure diagram to surface deno.json as an optional root file.
  1. Deno Configuration (deno.json)
  • Introduced a minimal example that:
    • Enables Deno’s Node-builtins compatibility
      • Defines a setup task (caching) and a build task (npm:astro build via Deno’s loader)
  1. GitHub Actions Workflow

🎯 Motivation

  • Leverage the new Deno support in withastro/action so that users who prefer Deno can build & deploy their Astro sites without installing Node.
  • Keep the Node-first flow fully supported and unchanged for existing users.

🔗 References


✅ Checklist

  • README updated with clear Deno instructions
  • Workflow file updated and tested on a sample Deno repo
  • Backward compatibility verified for Node-only projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant