Skip to content

Commit

Permalink
Merge pull request #46 from hypothesis/version-update
Browse files Browse the repository at this point in the history
Update package version to 0.7.0
  • Loading branch information
acelaya authored Jan 25, 2024
2 parents 4027f57 + 54ff62e commit 2b5da11
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ Stable versions are available on the [Hypothesis plugin page on WordPress.org](h

Follow these steps to publish a new plugin version.

1. **Update the package version** in `hypothesis.php`, `readme.txt` and `package.json`, and merge that change into the `main` branch[^1]. We use [Semantic Versioning](https://semver.org/#semantic-versioning-200).
2. **Create a tag** pointing at the version-change commit and generate a **new GitHub release** (details follow). Publishing a GitHub release will kick off a GitHub Action that will publish the plugin to wordpress.org
1. **Update the package version** in `hypothesis.php`, `readme.txt` and `package.json`
2. **Update readme.txt**, adding the new version with its list of changes, under the `Changelog` section.
3. **Merge** the changes into the `main` branch[^1]. We use [Semantic Versioning](https://semver.org/#semantic-versioning-200).
4. **Create a tag** pointing at the version-change commit and generate a **new GitHub release** (details follow). Publishing a GitHub release will kick off a GitHub Action that will publish the plugin to wordpress.org

### Creating a GitHub release

Expand All @@ -27,6 +29,10 @@ Create a [new GitHub release](https://github.com/hypothesis/wp-hypothesis/releas
3. Click the `Auto-generate release notes` button to generate release notes and edit as needed. We use [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) formatting.[^3]
4. Leave other fields alone/as defaults.

[^1]: Unlike other PRs, a version-bump PR does not require review. But do wait for CI to complete first.
[^2]: You can create a tag manually as a separate step if you want to tag a non-tip commit.
[^3]: You can look at release notes for [other recent releases](https://github.com/hypothesis/wp-hypothesis/releases) as exemplars. You don't need to include every change (especially, e.g., dependency updates).

## License

[BSD](http://opensource.org/licenses/BSD-2-Clause)
4 changes: 2 additions & 2 deletions hypothesis.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Hypothesis
* Plugin URI: https://hypothes.is/
* Description: Hypothesis is an open platform for the collaborative evaluation of knowledge. This plugin embeds the necessary scripts in your WordPress site to enable any user to use Hypothesis without installing any extensions.
* Version: 0.6.0
* Version: 0.7.0
* Requires at least: 6.2
* Requires PHP: 7.4
* Author: The Hypothesis Project and contributors
Expand All @@ -23,7 +23,7 @@ function hypothesis_load_plugin_textdomain() {
}
add_action( 'plugins_loaded', 'hypothesis_load_plugin_textdomain' );

define( 'HYPOTHESIS_PLUGIN_VERSION', '0.6.0' );
define( 'HYPOTHESIS_PLUGIN_VERSION', '0.7.0' );

require_once __DIR__ . '/class-hypothesissettingspage.php';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hypothesis",
"version": "0.6.0",
"version": "0.7.0",
"main": "Gruntfile.js",
"author": "The Hypothesis Project and contributors",
"repository": "http://github.com/hypothesis/wp-hypothesis/",
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: timmmmyboy, BigBlueHat, JakeHartnell, greatislander, acelaya
Tags: hypothesis, annotation, comments
Requires at least: 6.2
Tested up to: 6.4.2
Stable tag: 0.6.0
Stable tag: 0.7.0
License: BSD
License URI: http://opensource.org/licenses/BSD-2-Clause

Expand All @@ -21,6 +21,10 @@ Hypothesis is a web annotation tool that allows users to provide commentary, ref

== Changelog ==

= 0.7.0 =
* Add support for WordPress v6
* Update to WordPress coding standard v3

= 0.6.0 =
* Fix PDF links in multisite and other customized installations (props @boonbgorges).
* Tested up to WordPress 5.2.2.
Expand Down

0 comments on commit 2b5da11

Please sign in to comment.