1.1.0 • Published 4 years ago
enjoy-lib-updater v1.1.0
enjoy-lib-updater
Lib created in order to be able to update an npm package and automatically create a pull request in several repositories at the same time using one command only.
Requirements
- Install NodeJS v10 or later;
Getting Started
Get GitHub user token
Go to a settings page and generate a token
Set enviroments
Set this enviroments to run this lib correctly:
export GITHUB_TOKEN=81c2e4a9adde4009bcdff94b211d3e3b
export GITHUB_OWNER=letsenjoyit
Install using npm
npm i -g @letsenjoyit/enjoy-lib-updater
Run the command on stacks folder
Synopsis
lib-updater < lib-name > < repository-names... > -b|--branch -o|--owner
Description
lib-name: Name of lib to be installed;
repository-names: Stack names to be updated;
-b|--branch: Name of the branch to be created;
-e|--reviewers: Reviewers to be added to the pull request;
-o|--owner (opiional): Name of the repository owner (e.g.: letsenjoyit);
-m|--message (opiional): Message to be added to the update commit;
Exemple
lib-updater @letsenjoyit/enjoy-entities-breweries@1.9.1 enjoy-sls-stock enjoy-sls-tap enjoy-sls-reports fix/brewery-keg-id -e danilodevhub -e capelinha -m "Update breweries lib"