Skip to content

Commit 7e57276

Browse files
authored
Merge pull request #171 from pantheon-systems/release_1.3.3
Release 1.3.3
2 parents 6594edb + 06748fe commit 7e57276

13 files changed

+76
-56
lines changed

.distignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@
2727
/webpack.mix.js
2828
/SECURITY.md
2929
/.distignore
30-
/LICENSE
30+
/.eslint.config.js
31+
/.prettierrc
32+
/phpunit.xml
33+
/tsconfig.json
34+
/vite.config.ts

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules/
22
vendor/
3-
dist/
3+
assets/dist/
44
bin/
55
.DS_Store
66
*.code-workspace

CONTRIBUTING.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Contributing
2+
3+
The best way to contribute to the development of this plugin is by participating in the GitHub project:
4+
5+
<https://github.com/pantheon-systems/pantheon-content-publisher-wordpress>
6+
7+
## Workflow
8+
9+
Development and releases are structured around two branches, `primary` and `release`.
10+
The `primary` branch is the default branch for the repository, and is the source and destination for feature branches.
11+
12+
We prefer to squash commits (i.e., avoid merge PRs) from a feature branch into `primary` when merging and to include the PR number in the commit message. PRs to `primary` should also include any relevant updates to the changelog in readme.txt. For example, if a feature constitutes a minor or major version bump, that version update should be discussed and made as part of approving and merging the feature into `primary`.
13+
14+
`primary` should be stable and usable, though possibly a few commits ahead of the public release on wp.org.
15+
16+
The `release` branch matches the latest stable release deployed to [wp.org](wp.org).
17+
18+
## Release Process
19+
20+
1. Merge feature branches into `primary` with a PR. This PR should include any necessary updates to the changelog in readme.txt and README.md. Features should be _squash merged_.
21+
1. From `primary`, checkout a new branch `release_X.Y.Z`.
22+
1. Make a release commit:
23+
* In `README.md`, `readme.txt`, `package.json, package-lock.json`, and `pantheon-content-publisher.php`, remove the -dev from the version number. For the README files. the version number must be updated both at the top of the document as well as the changelog.
24+
* Add the date to the ** X.Y.X ** heading in the changelogs in README.md, readme.txt, and any other appropriate location.
25+
* Commit these changes with the message "Release X.Y.Z"
26+
1. Push the release branch up.
27+
1. Open a pull request to merge `release_X.Y.Z` into release. Your PR should consist of all commits to main since the last release, and one commit to update the version number. The PR name should also be Release X.Y.Z.
28+
1. After all tests pass and you have received approvals from CODEOWNERs, merge the PR into `release`. A merge commit is needed in this case. **Never** squash to release.
29+
1. After merging to the `release` branch, a draft Release will be automatically created by the [`build-tag-release`](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/.github/workflows/build-tag-release.yml) workflow. This draft release will be automatically pre-filled with release notes.
30+
1. Confirm that the necessary assets are present in the newly created tag, and test on a WP install if desired.
31+
1. Review the release notes, making any necessary changes, and publish the release.
32+
1. Wait for the [_Release pantheon-content-publisher plugin to wp.org_ action](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/.github/workflows/wordpress-plugin-deploy.yml) to finish deploying to the WordPress.org plugin repository. If all goes well, users with SVN commit access for that plugin will receive an email with a diff of the changes.
33+
1. Check WordPress.org: Ensure that the changes are live on the plugin repository. This may take a few minutes.
34+
1. Following the release, prepare the next dev version with the following steps:
35+
* `git checkout release`
36+
* `git pull origin release`
37+
* `git checkout primary`
38+
* `git rebase release`
39+
* Update the version number in all locations, incrementing the version by one patch version, and add the `-dev` flag (e.g. after releasing `1.2.3`, the new version will be `1.2.4-dev`)
40+
* Add a new `** X.Y.X-dev **` heading to the changelog in readme.txt and README.md
41+
* `git add -A .`
42+
* `git commit -m "Prepare X.Y.X-dev"`
43+
* `git push origin primary`
44+
1. Publish a public release note on [Pantheon's Documentation](https://github.com/pantheon-systems/documentation/) with the changelog and any notes.

Contributing.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Tags:** pantheon, content, google docs
55
**Requires at least:** 5.7
66
**Tested up to:** 6.8.1
7-
**Stable tag:** 1.3.2
7+
**Stable tag:** 1.3.3
88
**Requires PHP:** 8.0.0
99
**License:** GPLv2 or later
1010
**License URI:** <http://www.gnu.org/licenses/gpl-2.0.html>
@@ -51,7 +51,11 @@
5151

5252
## Quick start
5353

54-
This is a WordPress plugin. It can be installed via the usual WordPress Dashboard workflow.
54+
The Pantheon Content Publisher plugin can be installed like any other WordPress Plugin, from your WordPress Dashboard, go to Plugins -> Add Plugin and search for: Pantheon Content Publisher, click the Install Now button and then click Activate.
55+
56+
After the plugin is active, set up your connection to Pantheon Content Publisher and Google Drive via the settings page in the WordPress admin dashboard.
57+
58+
Alternately you can download and install the plugin manually:
5559

5660
- [Download the latest release.](https://github.com/pantheon-systems/pantheon-content-publisher-wordpress/releases/)
5761

README.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: getpantheon
33
Tags: pantheon
44
Requires at least: 5.7
55
Tested up to: 6.8.1
6-
Stable tag: 1.3.2
6+
Stable tag: 1.3.3
77
Requires PHP: 8.0.0
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -62,6 +62,9 @@ All posts/pages created with Pantheon Content Publisher will remain on your Word
6262

6363
== Changelog ==
6464

65+
= 1.3.3 (5 November 2025) =
66+
* Fix: Fixed plugin not loading on WordPress.org due to missing build files
67+
6568
= 1.3.2 =
6669
* Fix: Resolved issue loading Content Publisher admin screen
6770

app/Admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private function enqueueDevAssets(string $handle): void
9090

9191
private function enqueueProdAssets(string $handle): void
9292
{
93-
$manifestPath = CPUB_PLUGIN_DIR . 'dist/build/.vite/manifest.json';
93+
$manifestPath = CPUB_PLUGIN_DIR . 'assets/dist/build/.vite/manifest.json';
9494
if (!file_exists($manifestPath)) {
9595
error_log('Manifest file not found');
9696
return;
@@ -105,11 +105,11 @@ private function enqueueProdAssets(string $handle): void
105105
$jsFile = $entry['file'] ?? null;
106106
$cssFiles = $entry['css'] ?? [];
107107
if ($jsFile) {
108-
wp_enqueue_script_module($handle, CPUB_PLUGIN_DIR_URL . 'dist/build/' . $jsFile, [], null, true);
108+
wp_enqueue_script_module($handle, CPUB_PLUGIN_DIR_URL . 'assets/dist/build/' . $jsFile, [], null, true);
109109
$this->addBootstrap();
110110
}
111111
foreach ($cssFiles as $css) {
112-
wp_enqueue_style($handle, CPUB_PLUGIN_DIR_URL . 'dist/build/' . $css, [], null);
112+
wp_enqueue_style($handle, CPUB_PLUGIN_DIR_URL . 'assets/dist/build/' . $css, [], null);
113113
}
114114
}
115115

app/Settings.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,17 +707,17 @@ public function enqueueAdminAssets(): void
707707
{
708708
wp_enqueue_script(
709709
'pantheon-content-publisher',
710-
CPUB_PLUGIN_DIR_URL . 'dist/app.js',
710+
CPUB_PLUGIN_DIR_URL . 'assets/dist/app.js',
711711
[],
712-
filemtime(CPUB_PLUGIN_DIR . 'dist/app.js'),
712+
filemtime(CPUB_PLUGIN_DIR . 'assets/dist/app.js'),
713713
true
714714
);
715715

716716
wp_enqueue_style(
717717
'pantheon-content-publisher',
718-
CPUB_PLUGIN_DIR_URL . 'dist/app.css',
718+
CPUB_PLUGIN_DIR_URL . 'assets/dist/app.css',
719719
[],
720-
filemtime(CPUB_PLUGIN_DIR . 'dist/app.css')
720+
filemtime(CPUB_PLUGIN_DIR . 'assets/dist/app.css')
721721
);
722722

723723
wp_localize_script(
@@ -749,9 +749,9 @@ public function enqueueFrontAssets(): void
749749

750750
wp_enqueue_script(
751751
'pantheon-content-publisher',
752-
CPUB_PLUGIN_DIR_URL . 'dist/pcc-front.js',
752+
CPUB_PLUGIN_DIR_URL . 'assets/dist/pcc-front.js',
753753
[],
754-
filemtime(CPUB_PLUGIN_DIR . 'dist/pcc-front.js'),
754+
filemtime(CPUB_PLUGIN_DIR . 'assets/dist/pcc-front.js'),
755755
true
756756
);
757757

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pantheon-content-publisher",
3-
"version": "1.3.1",
3+
"version": "1.3.3",
44
"description": "Publish WordPress content from Google Docs with Pantheon Content Cloud.",
55
"scripts": {
66
"dev": "NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js",

0 commit comments

Comments
 (0)