Skip to content

Fix deploy workflow failure by upgrading Node runtime for Hugo/PostCSS - #14

Merged
sumit4613 merged 3 commits into
masterfrom
copilot/fix-deploy-github-actions-job
Aug 1, 2026
Merged

Fix deploy workflow failure by upgrading Node runtime for Hugo/PostCSS#14
sumit4613 merged 3 commits into
masterfrom
copilot/fix-deploy-github-actions-job

Conversation

Copilot AI commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

The deploy GitHub Actions job failed during Hugo asset processing because the workflow pinned Node 16, while the current Hugo/PostCSS execution path uses Node permission-model flags unsupported by Node 16.

  • Root cause

    • hugo PostCSS transform invoked Node with permission flags (--permission, --allow-fs-read, etc.).
    • Node 16 rejects these flags, causing the build to panic and the deploy job to fail.
  • Workflow update

    • Updated .github/workflows/gh-pages.yml to use a modern Node runtime in the deploy build step:
      • actions/setup-node@v3 node-version: '16'node-version: '22'
  • Minimal diff

    - with:
    -   node-version: '16'
    + with:
    +   node-version: '22'

Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Fix deploy workflow failure by upgrading Node runtime for Hugo/PostCSS Aug 1, 2026
Copilot AI requested a review from sumit4613 August 1, 2026 12:34
Copilot AI requested a review from sumit4613 August 1, 2026 12:41
@sumit4613
sumit4613 marked this pull request as ready for review August 1, 2026 12:42
@sumit4613
sumit4613 merged commit 2057fc0 into master Aug 1, 2026
1 check passed
@sumit4613
sumit4613 deleted the copilot/fix-deploy-github-actions-job branch August 1, 2026 12:42
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.

2 participants