withastro/astro-maintainer-skills · Archived

astro-preview-release

Trigger and monitor a preview release for an Astro pull request.

First seen Apr 30, 2026

Installation

$ npx skills add withastro/astro-maintainer-skills --skill astro-preview-release

Summary

  • Trigger and monitor a preview release for an Astro pull request.
  • Use this skill whenever the user wants to publish a preview/canary build of an Astro PR so that reporters or users can test a fix before it merges — including phrases like "create a preview release", "add the preview label", "let someone test this PR", "publish a canary for this fix", or "how do I get a preview package for this PR".
  • Specific to the withastro/astro monorepo and pkg.pr.new.

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from withastro/astro-maintainer-skills.

npx skills add withastro/astro-maintainer-skills

Browse all from withastro/astro-maintainer-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
License BSD-3-Clause
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0
LicenseBSD-3-Clause
More metadata
author
matthewp
version
1.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,277 B
  • docs SUMMARY.md 487 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 5 installs

SKILL.md

Astro PR Preview Release

Preview releases let users install and test a PR's changes before it merges, using pkg.pr.new.

How to trigger

Add the pr preview label to the PR:

gh pr edit <PR_NUMBER> --repo withastro/astro --add-label "pr preview"

This kicks off a "Publish preview release" GitHub Actions job.

Monitoring

Poll until the job completes:

gh pr checks <PR_NUMBER> --repo withastro/astro | grep -i "preview"

The job typically completes within a few minutes. Once it shows pass, a pkg-pr-new bot will post a comment on the PR with install commands.

Reading the comment

The bot comment contains per-package install commands, for example:

npm i https://pkg.pr.new/astro@<PR_NUMBER>
npm i https://pkg.pr.new/@astrojs/cloudflare@<PR_NUMBER>
npm i https://pkg.pr.new/@astrojs/node@<PR_NUMBER>

Share the relevant package command(s) with the issue reporter so they can test the fix directly.

Which package to share

Point the reporter to the package(s) that contain the fix:

  • Fix in packages/astro/ → share astro@<PR_NUMBER>
  • Fix in packages/integrations/node/ → share @astrojs/node@<PR_NUMBER>
  • Fix in packages/integrations/cloudflare/ → share @astrojs/cloudflare@<PR_NUMBER>
  • Fix touches multiple packages → share all relevant ones

Posting to the issue

After getting the install command, post a comment on the original issue so the reporter can try it:

gh issue comment <ISSUE_NUMBER> --repo withastro/astro --body "A preview build is available for testing:

\`\`\`
npm i https://pkg.pr.new/astro@<PR_NUMBER>
\`\`\`

Please let us know if this resolves the issue."