0.0.3 • Published 2 years ago

@nikolarhristov/maintenance v0.0.3

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

nikolarhristov maintenance scripts

.env

GITHUB_USER=your_github_username
BASE_DIR="your_development_folder"
GITHUB_AUTH_TOKEN="your_github_authentication_token"

Installation

# Using NPM
npm install -g @nikolarhristov/maintenance
# Using Yarn
yarn global add @nikolarhristov/maintenance
# Using PNPM
pnpm install -g @nikolarhristov/maintenance

or direct usage:

# Using NPM
npx @nikolarhristov/maintenance
# Using Yarn
yarn @nikolarhristov/maintenance
# Using PNPM
pnpx @nikolarhristov/maintenance

Then simply run each of the commands:

Delete all GitHub Actions runs and their logs for all of your repositories:

maintenance clean

Create a dependabot.yml file in each of the .github directories for each of the packages in the monorepo:

maintenance dependabot

Dispatch all workflows for all repositories for a given user:

maintenance dispatch

# or specific repositories by name
maintenance dispatch repository-name repository-name-2

Enable all the features that GitHub offers for all the repositories that you have access to:

maintenance edit-features

Create a node.yml file in the .github/workflows directory for each repository that has a package.json file.

maintenance node

Create a rust.yml file in the .github/workflows directory for each repository that has a Cargo.toml file.

maintenance rust

Run all workflow tasks.

maintenance workflows

Squash all commits that contain Cleanup.

maintenance squash

Find all the package.json files in the project, and then star all the dependencies in that package.json.

maintenance star