Skip to content

Fix live deploy: retention script on CI runners - #27

Merged
northdpole merged 1 commit into
mainfrom
fix/live-deploy-retention-script
Jun 8, 2026
Merged

northdpole merged 1 commit into
mainfrom
fix/live-deploy-retention-script

Conversation

@northdpole

Copy link
Copy Markdown
Collaborator

Summary

The live deploy on main failed after #26 merged — not because of the Node.js 20 deprecation notice.

  • Warning (harmless for now): Node.js 20 actions are deprecated on actions/checkout@v4 — GitHub advisory only; preview deploys still succeeded.
  • Actual failure: set-hosting-retention.js fell back to a hardcoded macOS Homebrew path (/opt/homebrew/Cellar/firebase-cli/...) that does not exist on Linux runners.

Fix

  • Rewrite retention script to use google-auth-library + Firebase Hosting REST API (same FIREBASE_SERVICE_ACCOUNT creds)
  • Add npm ci before running the script in the live deploy workflow
  • Bump actions/checkout@v4@v6 to clear the Node.js 20 deprecation warning

Test plan

Made with Cursor

Replace the hardcoded local firebase-tools path with google-auth-library and service account auth, add npm ci to the deploy workflow, and bump checkout to v6.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit c7015a1):

https://mozaic-56ca8--pr27-fix-live-deploy-rete-lb4wr45i.web.app

(expires Thu, 11 Jun 2026 21:06:45 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: ce324a54b3966da2685f33626583cb325e08078c

@northdpole
northdpole merged commit f288ee3 into main Jun 8, 2026
3 checks passed

This branch was previously deployed

1 inactive deployment
production c7015a19 Deployed Jun 8, 2026 by northdpole via build_and_preview_same_repo #6
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