0.0.3 • Published 3 years ago
@nikolarhristov/maintenance v0.0.3
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/maintenanceor direct usage:
# Using NPM
npx @nikolarhristov/maintenance
# Using Yarn
yarn @nikolarhristov/maintenance
# Using PNPM
pnpx @nikolarhristov/maintenanceThen simply run each of the commands:
Delete all GitHub Actions runs and their logs for all of your repositories:
maintenance cleanCreate a dependabot.yml file in each of the .github directories for each of
the packages in the monorepo:
maintenance dependabotDispatch all workflows for all repositories for a given user:
maintenance dispatch
# or specific repositories by name
maintenance dispatch repository-name repository-name-2Enable all the features that GitHub offers for all the repositories that you have access to:
maintenance edit-featuresCreate a node.yml file in the .github/workflows directory for each
repository that has a package.json file.
maintenance nodeCreate a rust.yml file in the .github/workflows directory for each
repository that has a Cargo.toml file.
maintenance rustRun all workflow tasks.
maintenance workflowsSquash all commits that contain Cleanup.
maintenance squashFind all the package.json files in the project, and then star all the
dependencies in that package.json.
maintenance star