Skip to content

Conversation

@miguelpeixe
Copy link
Member

@miguelpeixe miguelpeixe commented Jan 27, 2026

Same as Automattic/newspack-plugin#4413

The build_distributable workflow was modified to generate artifacts for each child theme. Check this run to confirm the packages are correctly generated and uploaded:

https://github.com/Automattic/newspack-theme/actions/runs/21412152840

@miguelpeixe miguelpeixe self-assigned this Jan 27, 2026
@miguelpeixe miguelpeixe requested a review from a team as a code owner January 27, 2026 19:45
@miguelpeixe miguelpeixe added the [Status] Needs Review The issue or pull request needs to be reviewed label Jan 27, 2026
Comment on lines 47 to 50
- name: Publish child themes releases
run: node scripts/create-child-releases.js --run
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

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

In scripts/create-child-releases.js the script creates releases in the separate child-theme repos (e.g. newspack-joseph-theme). The default GITHUB_TOKEN is repo-scoped to newspack-theme, so it won't have permission to create releases in those external repos.

We might need to pass a token with access to the child-theme repos instead of secrets.GITHUB_TOKEN.

Copy link
Member Author

Choose a reason for hiding this comment

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

GITHUB_TOKEN is automatically passed by gh actions, no need to be declared explicitly

Copy link
Member

Choose a reason for hiding this comment

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

To clarify, this is about this token's permission to actually create the release in the child themes' standalone repos.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right! I refactored the strategy to avoid having to manage a PAT.

Release repos will now rely on .github/workflows/reusable-sync-release.yml to create their releases. This has been applied to all repos. See https://github.com/Automattic/newspack-sacha-theme/actions for an example

miguelpeixe and others added 2 commits January 28, 2026 09:53
@github-actions
Copy link

🎉 This PR is included in version 2.18.0-hotfix-test-gh-action.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

miguelpeixe and others added 5 commits January 28, 2026 11:19
- Replaced the child release script with a reusable workflow for syncing releases.
- Updated the release configuration to define themes directly in the .releaserc.js file.
- Removed the deprecated publish-child-releases job from the GitHub Actions workflow.
- Updated the workflow to fetch the latest release, including pre-releases.
- Added logic to conditionally create a pre-release based on the fetched release information.
- Improved body fetching for releases to ensure accurate content retrieval.
# [2.18.0-hotfix-test-gh-action.2](v2.18.0-hotfix-test-gh-action.1...v2.18.0-hotfix-test-gh-action.2) (2026-01-28)

### Bug Fixes

* enhance release workflow to handle pre-releases ([23c06f3](23c06f3))
@github-actions github-actions bot added [Status] Approved The pull request has been reviewed and is ready to merge and removed [Status] Needs Review The issue or pull request needs to be reviewed [Status] Needs Changes or Feedback labels Jan 30, 2026
@miguelpeixe miguelpeixe merged commit a32ba60 into trunk Jan 30, 2026
3 of 5 checks passed
@miguelpeixe miguelpeixe deleted the chore/deprecate-circle-ci branch January 30, 2026 19:30
@github-actions
Copy link

Hey @miguelpeixe, good job getting this PR merged! 🎉

Now, the needs-changelog label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-changelog released on @hotfix/test-gh-action [Status] Approved The pull request has been reviewed and is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants