wordpress-workspace-release-runbook

Guide de construction, empaquetage, signature, notarisation, injection de secrets OAuth, vérifications de version et documentation de version pour ce dépôt. Utiliser lorsque…

npx skills add https://github.com/automattic/workspace --skill wordpress-workspace-release-runbook

WordPress Workspace Release Runbook

Use this skill for release, packaging, and build-operation work in this repository.

Before Acting

  • Check git status --short --branch.
  • Do not overwrite unrelated local changes.
  • Confirm whether the user wants a development build, local release package, notarized package, or published GitHub Release.
  • Do not expose OAuth secrets or paste secret values into logs, docs, or commit messages.

Development Build

  • Default command: make
  • Default output: build/WP Workspace Dev.app
  • Default bundle identifier: com.automattic.wpworkspace.dev
  • Current builds link SQLite with -lsqlite3 for the QuickLauncher/Workspace cache.
  • Use make run only when the user wants to launch the app locally.

OAuth Secret Handling

  • Info.plist contains the WordPress.com OAuth client ID.
  • The OAuth client secret is not committed.
  • Local builds can inject it with:
    • WPCOM_OAUTH_CLIENT_SECRET="$WPCOM_CLIENT_SECRET" make CODESIGN_IDENTITY=-
    • make CODESIGN_IDENTITY=- WPCOM_OAUTH_CLIENT_SECRET_FILE=.wpcom-oauth-client-secret
  • Treat the app secret as inspectable native-app credential material, not a server-grade secret.

Manual Release

  • Main script: Tools/manual-release.sh
  • Default package path: build/WPWorkspace-<version>.zip
  • The script expects a clean working tree unless --allow-dirty is explicitly chosen.
  • The script uses Info.plist for CFBundleShortVersionString and creates or reuses tag v<version> when publishing.
  • Publishing requires gh and uploads the zip to GitHub Releases.
  • Creating or publishing a release can notify users through the app updater badge, so confirm version, notes, and artifact readiness before making the release public.

CI and Notarization

  • Makefile owns direct swiftc compilation, resource copying, secret injection, code signing, zip, DMG, and notarization targets.
  • If build failures mention SQLite symbols, verify the LDFLAGS = -lsqlite3 path in Makefile is still applied to all architecture builds.
  • Tools/notarize.sh handles notarization and stapling.
  • .github/workflows/release.yml is intentionally disabled behind manual dispatch.
  • .buildkite/pipeline.yml runs build, signing, notarization, and artifact collection on the mac queue.
  • Creating the GitHub Release triggers the Buildkite production build. After the build finishes, download the artifact from Buildkite and attach it to the GitHub Release manually unless automation has been explicitly changed.

Smoke Test

  • Transcription endpoint script: Tools/wpcom-transcribe.sh
  • It requires a bearer token, site, and audio file.
  • It posts multipart audio to /wpcom/v2/sites/{site}/ai/transcription.
  • Keep this path dependency-free: shell plus curl, with --verbose, --proxy, and --envelope available for debugging.
  • Use --intent command --selected-text "..." when testing selected-text transformation.

Verification

  • For docs-only changes, do not run make unless the user asks.
  • For build changes, prefer make or the narrowest relevant target.
  • For release changes, verify scripts with shellcheck-style reading and dry-run reasoning when secrets or publishing are unavailable.

Plus de skills de automattic

testing-js
automattic
Directives pour vérifier les fichiers JavaScript pour les erreurs de syntaxe
setup
automattic
Vérifier que l'interface en ligne de commande dn est installée et configurée. Utiliser lorsque l'utilisateur installe pour la première fois le plugin domain-names, ou lorsqu'une commande dn échoue parce que l'interface en ligne de commande est…
studio-cli
automattic
Utilisez le Studio CLI pour gérer les sites WordPress locaux, l'authentification et les sites de prévisualisation. Invoquez cette compétence lorsque vous devez exécuter des commandes Studio CLI, gérer…
dn-info
automattic
Obtenez des informations détaillées sur un domaine enregistré à l'aide de l'interface en ligne de commande dn. Utilisez lorsque l'utilisateur souhaite consulter les détails d'un domaine comme la date d'expiration, les serveurs de noms, les contacts,…
qa
automattic
Comparez le contenu WXR extrait avec la page source d'origine, page par page. Repérez les textes, titres, images et liens manquants. Corrigez en patchant le WXR ou…
add-skill
automattic
Ajouter une nouvelle compétence au plugin a8c-design. À utiliser lorsque vous avez créé une compétence Claude Code et que vous souhaitez la contribuer au plugin partagé Automattic a8c-design —…
design-foundations
automattic
Construire un JSON design-foundation cohérent à partir d'un site libéré — rôles sémantiques de couleur/typographie/espacement avec des traces de preuve. Consomme le scaffold partiel…
wp-phpstan
automattic
À utiliser lors de la configuration, de l'exécution ou de la correction de l'analyse statique PHPStan dans des projets WordPress (plugins/thèmes/sites) : configuration de phpstan.neon, baselines,…