Skip to content

ci: drop preview sticky comment + fix Node 20 deprecation warnings#263

Merged
jlian merged 1 commit into
mainfrom
ci/preview-cleanup
Jul 21, 2026
Merged

ci: drop preview sticky comment + fix Node 20 deprecation warnings#263
jlian merged 1 commit into
mainfrom
ci/preview-cleanup

Conversation

@jlian

@jlian jlian commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Follow-up to #262. Two cleanups + address the Node 20 deprecation notices.

1. Remove the preview sticky-comment step

The Comment preview URL on PR step auto-posted (and re-posted on every push) a comment like this one. It's redundant: the per-PR preview URL is already surfaced on the PR via the GitHub deployment / Environments UI (the Branch preview deployment step sets environment_url). Removing the comment cuts the noise. Also drops the now-unused pull-requests: write permission from the CI job (least privilege).

2. Fix Node 20 deprecation warnings

CI was emitting:

Node 20 is being deprecated. This workflow is running with Node 24 by default...

Source: actions still pinned to Node 20 runtimes. Bumped to Node 24:

  • cloudflare/wrangler-action@v3@v4 (ci.yml, release.yml). v4's only major change is wranglerVersion input flexibility (version ranges/tags); no behavior change for our exact-command usage.
  • actions/github-script@v7@v9 (ci.yml, cleanup-preview.yml, rotate-apple-secret.yml). v9 runs on node24.

All other actions (checkout@v6, setup-node@v6, cache@v5) were already on Node 24.

Verification

Note: separately, the Copilot review comments on #259 are being handled on that PR.

- Remove the 'Comment preview URL on PR' step. The per-PR preview URL is already
  surfaced via the GitHub deployment/Environments UI on the PR, so the extra
  auto-comment on every push was noise. Also drop the now-unused
  pull-requests: write permission from the CI job.
- Kill the Node 20 deprecation warnings by bumping actions to Node 24 runtimes:
  cloudflare/wrangler-action@v3 -> @v4 (ci.yml, release.yml) and
  actions/github-script@v7 -> @v9 (ci.yml, cleanup-preview.yml,
  rotate-apple-secret.yml). wrangler-action v4's only major change is
  wranglerVersion input flexibility (no behavior change for our usage).
Copilot AI review requested due to automatic review settings July 21, 2026 06:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates GitHub Actions workflows to reduce PR noise and eliminate Node 20 runtime deprecation warnings by bumping action major versions (Wrangler and github-script).

Changes:

  • Remove the CI “Comment preview URL on PR” step and drop the now-unneeded pull-requests: write permission.
  • Bump cloudflare/wrangler-action from v3 to v4 (CI + release workflows).
  • Bump actions/github-script from v7 to v9 (CI + maintenance workflows) to run on Node 24.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
.github/workflows/ci.yml Removes the sticky PR preview comment and updates Wrangler/github-script action versions while keeping preview deployment URL surfaced via deployments UI.
.github/workflows/cleanup-preview.yml Updates actions/github-script to v9 for the PR-close deployment cleanup workflow.
.github/workflows/release.yml Updates Wrangler action to v4 for deploys to avoid Node 20 deprecation warnings.
.github/workflows/rotate-apple-secret.yml Updates actions/github-script to v9 for scheduled Apple secret rotation.
Comments suppressed due to low confidence (1)

.github/workflows/cleanup-preview.yml:20

  • cleanup-preview.yml is deactivating deployments for preview (${branch}), but the CI workflow creates deployments with environment name preview (#<PR number>) (see .github/workflows/ci.yml createDeployment call). As a result, this cleanup job will not find and deactivate the preview deployments created by CI, leaving stale active deployments after PR close.
        uses: actions/github-script@v9
        with:
          script: |
            const branch = context.payload.pull_request.head.ref;
            const envName = `preview (${branch})`;

@jlian
jlian merged commit c459340 into main Jul 21, 2026
3 checks passed
@jlian
jlian deleted the ci/preview-cleanup branch July 21, 2026 06:58
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