Skip to content

Commit cdd0152

Browse files
authored
Merge pull request #217 from newfold-labs/add/release-workflow
Add release prep workflow
2 parents 2441bf3 + 46c5135 commit cdd0152

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Newfold Prepare Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
level:
7+
description: 'The level of release to be used.'
8+
type: choice
9+
options:
10+
- 'patch'
11+
- 'minor'
12+
- 'major'
13+
default: 'patch'
14+
required: true
15+
# Disable permissions for all available scopes by default.
16+
# Any needed permissions should be configured at the job level.
17+
permissions: {}
18+
19+
jobs:
20+
21+
# This job runs the newfold module-prep-release workflow for this module.
22+
prep-release:
23+
name: Prepare Release
24+
uses: newfold-labs/workflows/.github/workflows/reusable-module-prep-release.yml@main
25+
permissions:
26+
contents: write
27+
pull-requests: write
28+
with:
29+
module-repo: ${{ github.repository }}
30+
module-branch: 'main'
31+
level: ${{ inputs.level }}
32+
json-file: 'package.json'
33+
php-file: ''

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ A module for managing caching functionality.
5454
Features::getInstance();
5555
```
5656

57+
## Release
58+
59+
Run the Newfold Prep Release github action to automatically bump the version (either patch, minor or major version), update the build files, and language files all at once. It will create a PR with changed files for manual review. Using this workflow, we can skip all the manual steps below.
60+
61+
## References
62+
5763
[More on Newfold WordPress Modules](https://github.com/newfold-labs/wp-module-loader)
5864

5965
[More on the Newfold Features Modules](https://github.com/newfold-labs/wp-module-features)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "Module to manage performance settings in newfold plugins",
44
"license": "GPL-2.0-or-later",
55
"private": true,
6+
"version": "3.1.5",
67
"contributors": [
78
"Abdulrahman Al Ani (https://alani.dev/)",
89
"Evan Mullins (https://evanmullins.com)",

0 commit comments

Comments
 (0)