enjoy-lib-updater

1.1.0 • Public • Published

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] [-e|--reviewers] [-o|--owner] [-m|--message]

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"

Frameworks, plugins and libs reference

Readme

Keywords

none

Package Sidebar

Install

npm i enjoy-lib-updater

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

24.4 kB

Total Files

16

Last publish

Collaborators

  • capelinha