-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
116 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## Unreleased | ||
- First Alpha release of UserFrosting 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Workers\MonoRepo; | ||
|
||
use PharIo\Version\Version; | ||
use Symplify\MonorepoBuilder\Release\Contract\ReleaseWorker\ReleaseWorkerInterface; | ||
use Symplify\MonorepoBuilder\Release\Process\ProcessRunner; | ||
|
||
final class NpmVersionWorker implements ReleaseWorkerInterface | ||
{ | ||
public function __construct( | ||
private ProcessRunner $processRunner, | ||
) { | ||
} | ||
|
||
public function work(Version $version) : void | ||
{ | ||
$npmVersionCommand = \sprintf('npm version %s workspaces --git-tag-version false', $version->getVersionString()); | ||
$this->processRunner->run($npmVersionCommand); | ||
} | ||
|
||
public function getDescription(Version $version) : string | ||
{ | ||
return \sprintf('Set npm version "%s"', $version->getVersionString()); | ||
} | ||
} |