[DX] Add "setup-downgrade" to init easy downgrade builds, similar to "setup-ci"
Rector is the only tool that can handle downgraded. Yet setting up the downgrade process is quite challenging when it comes to:
- path defintion
- scoper setup
- github action content
- /build directory logic including downgraded
composer.json - custom change in main
composer.json, e.g. platform checks false etc.
Instead making this workflow available only to few who struggle through, there should be a helper command than handles this for users and make downgrading piede of cake :muscle:
Note: make use of questiosn and link similar to composer require of a private package in composer. Ask for the token, and place it in the code for user themselves.
Hi @samsonasik , could you add this command? Should be similar to setup-ci, just with different contents.
It should dump all these files:
- https://github.com/TomasVotruba/lines/tree/main/build
- https://github.com/TomasVotruba/lines/blob/main/.github/workflows/downgraded_release.yaml
- https://github.com/TomasVotruba/lines/blob/main/scoper.php
- https://github.com/TomasVotruba/lines/blob/main/prefix-code.sh
I will try
This issue is being stale and I realize there is no much need for it. The downgrade script can evolve as well, and it's safer to copy-paste it from most recent downgrade build, rather to create a dummy template that will get obsolete soon and will spread old outdated code :)
Closing as not needed