Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/automated-releases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@headstartwp/core': patch
'@headstartwp/next': patch
---

Publish from the new automated Release workflow with npm provenance.

Packages are now published by a single GitHub Actions workflow (`.github/workflows/release.yml`) using npm
trusted publishing, so every release carries a signed provenance attestation linking it to the commit and
workflow run that built it. `package.json` now declares `repository` (required for provenance). No runtime
changes.
5 changes: 0 additions & 5 deletions .changeset/fix-cross-domain-redirect-skip.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/fix-gutenberg-dollar-sign.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-undefined-context-key.md

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/deploy_wp_plugin_develop.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/deploy_wp_plugin_stable.yml

This file was deleted.

87 changes: 0 additions & 87 deletions .github/workflows/npm-release-next-version.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release check

# Dry-runs the release on every PR, so a broken changeset, version script or
# plugin version sync is caught before it reaches trunk/develop instead of in
# the Release workflow.

on:
pull_request:
branches:
- trunk
- develop

concurrency:
group: release-check-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
dry-run:
name: Release dry run
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: 24
cache: npm

- name: Install dependencies
run: npm ci

- name: Changeset status
# Informational: lists what this PR would release. Missing changesets are
# flagged by the changeset bot, so this does not fail the build.
run: npx changeset status --verbose --since="origin/${{ github.base_ref }}" || true

- name: Version packages (dry run)
run: |
npm run version
echo "### Release dry run" >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
git diff --stat >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"

- name: Plugin version is in sync
run: |
VERSION=$(jq -r .version wp/headless-wp/package.json)
grep -q "^ \* Version: ${VERSION}$" wp/headless-wp/plugin.php
grep -q "HEADLESS_WP_PLUGIN_VERSION', '${VERSION}'" wp/headless-wp/plugin.php
echo "Plugin version ${VERSION} is consistent."

- name: Build and pack packages
run: |
npm run build:packages
for dir in packages/*/; do
(cd "$dir" && npm pack --dry-run > /dev/null) || exit 1
done
93 changes: 0 additions & 93 deletions .github/workflows/release-latest-version.yml

This file was deleted.

Loading
Loading