Skip to content

Commit bed4ec9

Browse files
authored
Merge pull request #657 from newfold-labs/release/2.6.0
Release/2.6.0
2 parents 925b435 + 3b38aa9 commit bed4ec9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+4826
-4830
lines changed

.github/scripts/set-version-bump.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
const fs = require( 'fs' );
2+
const path = require( 'path' );
3+
const semver = require( 'semver' );
4+
const packagefile = path.resolve( __dirname, '../../package.json' );
5+
const pluginfile = path.resolve( __dirname, '../../bootstrap.php' );
6+
7+
if ( fs.existsSync( packagefile ) && fs.existsSync( pluginfile ) ) {
8+
const packageData = require( packagefile );
9+
const currentVersion = packageData.version;
10+
let type = process.argv[ 2 ];
11+
if ( ! [ 'major', 'minor', 'patch' ].includes( type ) ) {
12+
type = 'patch';
13+
}
14+
15+
const newVersion = semver.inc( packageData.version, type );
16+
packageData.version = newVersion;
17+
fs.writeFileSync( packagefile, JSON.stringify( packageData, null, 4 ) );
18+
19+
fs.readFile( pluginfile, 'utf8', function ( err, data ) {
20+
if ( err ) {
21+
return console.log( err );
22+
}
23+
const result = data.replaceAll( currentVersion, newVersion );
24+
25+
fs.writeFile( pluginfile, result, 'utf8', function ( err ) {
26+
if ( err ) {
27+
return console.log( err );
28+
}
29+
} );
30+
} );
31+
32+
console.log( 'Version updated', currentVersion, '=>', newVersion );
33+
}

.github/workflows/brand-plugin-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
module-repo: ${{ github.repository }}
3434
module-branch: ${{ needs.setup.outputs.branch }}
3535
plugin-repo: "newfold-labs/wp-plugin-bluehost"
36+
plugin-branch: 'release/4.1.2'
3637
secrets: inherit
3738

3839
hostgator:

README.md

Lines changed: 16 additions & 11 deletions

bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function nfd_wp_module_onboarding_register() {
2424

2525
// Set Global Constants
2626
if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) {
27-
define( 'NFD_ONBOARDING_VERSION', '2.5.8' );
27+
define( 'NFD_ONBOARDING_VERSION', '2.6.0' );
2828
}
2929
if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) {
3030
define( 'NFD_ONBOARDING_DIR', __DIR__ );

build/2.5.8/sitegen-theme-marker.css.asset.php

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/2.5.8/sitegen-theme-marker.css.css

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)