Skip to content

Conversation

@dkoo
Copy link
Contributor

@dkoo dkoo commented Jan 27, 2026

@dkoo dkoo self-assigned this Jan 27, 2026
Copilot AI review requested due to automatic review settings January 27, 2026 22:12
@dkoo dkoo requested a review from a team as a code owner January 27, 2026 22:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR deprecates the existing CircleCI-based CI/CD pipeline and replaces it with GitHub Actions workflows using Automattic/newspack-scripts reusable workflows, along with updating the newspack-scripts toolchain reference in package-lock.json.

Changes:

  • Remove the CircleCI configuration and associated jobs (build, lint, i18n, release, post-release, PHP).
  • Add GitHub Actions workflows for build/test, PHP linting, i18n, release/post-release, and distributable builds based on Automattic/newspack-scripts reusable workflows.
  • Update the newspack-scripts entry in package-lock.json to resolve from a specific Git commit in the Automattic/newspack-scripts repository instead of the npm registry tarball.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package-lock.json Points newspack-scripts to a specific commit in the Automattic/newspack-scripts repo, aligning the local toolchain with the reusable GitHub workflows but introducing a git-based resolution.
.github/workflows/release.yml Introduces a Release workflow that builds, runs semantic release via reusable workflow, and runs a post-release job for the release branch.
.github/workflows/php.yml Adds a PHP workflow that runs reusable PHP linting on PRs and pushes to main release-related branches.
.github/workflows/i18n.yml Adds an Internationalization workflow that runs reusable i18n tasks on pushes to trunk.
.github/workflows/build-distributable.yml Adds a distributable build workflow using the reusable build-distributable workflow, currently triggered only on PRs.
.github/workflows/build-and-test.yml Adds a general Build and Test workflow using reusable build and JS/SCSS lint workflows on PRs and pushes to main release-related branches.
.circleci/config.yml Removes the legacy CircleCI configuration and its workflows in favor of GitHub Actions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +14
on:
pull_request:

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

jobs:
build-distributable:
uses: Automattic/newspack-scripts/.github/workflows/reusable-build-distributable.yml@trunk
with:
archive-name: newspack-block-theme
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

In the CircleCI config, the build-distributable job was tied to the release workflow (requiring newspack/release) and therefore produced archives on release, alpha, hotfix/*, and epic/* branches, but this GitHub Actions workflow only runs on pull_request events. If you still rely on CI-generated distributable archives for those release branches, you may want to add corresponding push triggers for release, alpha, hotfix/**, and epic/** here to preserve the previous behavior.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants