Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/release-composer-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Monorepo Release

on:
workflow_dispatch:
inputs:
bump:
description: 'Version bump type (patch, minor, major)'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major

jobs:
monorepo-release:
runs-on: ubuntu-latest
environment: composer_deploy
permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'

- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist

- name: Configure Git user
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"

- name: Run MonorepoBuilder release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
vendor/bin/monorepo-builder release ${{ github.event.inputs.bump }}

- name: Ensure GitHub CLI and jq are installed
run: |
if ! command -v gh >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y gh jq
else
gh --version
jq --version || (sudo apt-get update && sudo apt-get install -y jq)
fi

- name: Split code into component repositories
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }}
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
GH_ORG: ${{ secrets.GH_ORG }}
DEFAULT_BRANCH: trunk
run: bash bin/split-code.sh

68 changes: 34 additions & 34 deletions components/BlockParser/composer.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"name": "wp-php-toolkit/blockparser",
"description": "BlockParser component for WordPress.",
"type": "library",
"require": {
"php": ">=7.2"
},
"authors": [
{
"name": "Adam Zielinski",
"email": "[email protected]"
},
{
"name": "WordPress Team",
"email": "[email protected]"
}
],
"autoload": {
"classmap": [
"."
],
"exclude-from-classmap": [
"/Tests/"
]
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"archive": {
"exclude": [
"**/.github/",
"**/Tests/",
"**/bin/"
]
}
"name": "wp-php-toolkit/blockparser",
"description": "BlockParser component for WordPress.",
"type": "library",
"require": {
"php": ">=7.2"
},
"authors": [
{
"name": "Adam Zielinski",
"email": "[email protected]"
},
{
"name": "WordPress Team",
"email": "[email protected]"
}
],
"autoload": {
"classmap": [
"."
],
"exclude-from-classmap": [
"/Tests/"
]
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"archive": {
"exclude": [
"**/.github/",
"**/Tests/",
"**/bin/"
]
}
}
74 changes: 37 additions & 37 deletions components/Blueprints/composer.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"name": "wp-php-toolkit/blueprints",
"description": "Blueprints component for WordPress.",
"type": "library",
"authors": [
{
"name": "Adam Zielinski",
"email": "[email protected]"
},
{
"name": "WordPress Team",
"email": "[email protected]"
}
],
"require": {
"php": ">=7.2",
"wp-php-toolkit/bytestream": "dev-trunk",
"wp-php-toolkit/blueprints": "dev-trunk",
"wp-php-toolkit/filesystem": "dev-trunk",
"wp-php-toolkit/http-client": "dev-trunk",
"wp-php-toolkit/xml": "dev-trunk",
"wp-php-toolkit/zip": "dev-trunk"
},
"autoload": {
"classmap": [
"./"
],
"exclude-from-classmap": [
"/Tests/"
]
},
"archive": {
"exclude": [
"**/.github/",
"**/Tests/",
"**/bin/"
]
}
"name": "wp-php-toolkit/blueprints",
"description": "Blueprints component for WordPress.",
"type": "library",
"authors": [
{
"name": "Adam Zielinski",
"email": "[email protected]"
},
{
"name": "WordPress Team",
"email": "[email protected]"
}
],
"require": {
"php": ">=7.2",
"wp-php-toolkit/bytestream": "^0.0.11",
"wp-php-toolkit/blueprints": "^0.0.11",
"wp-php-toolkit/filesystem": "^0.0.11",
"wp-php-toolkit/http-client": "^0.0.11",
"wp-php-toolkit/xml": "^0.0.11",
"wp-php-toolkit/zip": "^0.0.11"
},
"autoload": {
"classmap": [
"./"
],
"exclude-from-classmap": [
"/Tests/"
]
},
"archive": {
"exclude": [
"**/.github/",
"**/Tests/",
"**/bin/"
]
}
}
8 changes: 6 additions & 2 deletions components/Blueprints/vendor-patched/log/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "psr/log",
"description": "Common interface for logging libraries",
"keywords": ["psr", "psr-3", "log"],
"keywords": [
"psr",
"psr-3",
"log"
],
"homepage": "https://github.com/php-fig/log",
"license": "MIT",
"authors": [
Expand All @@ -20,7 +24,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.1.x-dev"
"dev-master": "0.1-dev"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,49 +1,48 @@
{
"name": "symfony/event-dispatcher",
"type": "library",
"description": "Symfony EventDispatcher Component",
"keywords": [],
"homepage": "https://symfony.com",
"license": "MIT",
"authors": [
{
"name": "Fabien Potencier",
"email": "[email protected]"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"require": {
"php": ">=5.5.9"
},
"require-dev": {
"symfony/dependency-injection": "~3.3",
"symfony/expression-language": "~2.8|~3.0",
"symfony/config": "~2.8|~3.0",
"symfony/stopwatch": "~2.8|~3.0",
"psr/log": "~1.0"
},
"conflict": {
"symfony/dependency-injection": "<3.3"
},
"suggest": {
"symfony/dependency-injection": "",
"symfony/http-kernel": ""
},
"autoload": {
"psr-4": {
"Symfony\\Component\\EventDispatcher\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"minimum-stability": "dev",
"extra": {
"branch-alias": {
"dev-master": "3.3-dev"
}
}
"name": "symfony/event-dispatcher",
"type": "library",
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
"license": "MIT",
"authors": [
{
"name": "Fabien Potencier",
"email": "[email protected]"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"require": {
"php": ">=5.5.9"
},
"require-dev": {
"symfony/dependency-injection": "~3.3",
"symfony/expression-language": "~2.8|~3.0",
"symfony/config": "~2.8|~3.0",
"symfony/stopwatch": "~2.8|~3.0",
"psr/log": "^0.0.11"
},
"conflict": {
"symfony/dependency-injection": "<3.3"
},
"suggest": {
"symfony/dependency-injection": "",
"symfony/http-kernel": ""
},
"autoload": {
"psr-4": {
"Symfony\\Component\\EventDispatcher\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"minimum-stability": "dev",
"extra": {
"branch-alias": {
"dev-master": "0.1-dev"
}
}
}
Loading
Loading