Skip to content

Commit 06d9030

Browse files
Merge branch 'trunk' into add/PRESS8-243-resume-or-restart-onboarding
2 parents 07d6fe7 + 30a55a8 commit 06d9030

File tree

108 files changed

+14332
-3235
lines changed

Some content is hidden

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

108 files changed

+14332
-3235
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+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Crowdin Download Action
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
base_branch:
7+
description: 'Base branch for the pull request'
8+
required: false
9+
default: 'main'
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
jobs:
16+
call-crowdin-workflow:
17+
uses: newfold-labs/workflows/.github/workflows/i18n-crowdin-download.yml@main
18+
with:
19+
base_branch: ${{ inputs.base_branch }}
20+
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
21+
secrets:
22+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Crowdin Upload Action
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
call-crowdin-upload-workflow:
8+
uses: newfold-labs/workflows/.github/workflows/i18n-crowdin-upload.yml@main
9+
with:
10+
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
11+
secrets:
12+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

.github/workflows/lint-check-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup PHP
2929
uses: shivammathur/setup-php@v2
3030
with:
31-
php-version: '8.3'
31+
php-version: '7.3'
3232
coverage: none
3333
tools: composer, cs2pr
3434

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__ );
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)