Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cometkim/yarn-plugin-bump
Non-interactive dependency upgrade tool for Yarn 2
https://github.com/cometkim/yarn-plugin-bump
dependency-updates pnp yarn yarn-plugin
Last synced: 4 months ago
JSON representation
Non-interactive dependency upgrade tool for Yarn 2
- Host: GitHub
- URL: https://github.com/cometkim/yarn-plugin-bump
- Owner: cometkim
- License: mit
- Created: 2020-03-08T15:19:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T11:54:06.000Z (about 1 year ago)
- Last Synced: 2024-05-01T15:35:56.497Z (9 months ago)
- Topics: dependency-updates, pnp, yarn, yarn-plugin
- Language: TypeScript
- Size: 38.5 MB
- Stars: 15
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - yarn-plugin-bump - interactive dependency upgrade tool for Yarn 2 | cometkim | 11 | (TypeScript)
README
# yarn-plugin-bump
A Yarn 2 plugin for upgrading PnP-mode dependencies easily with a dead-simple command and no waste of interactions.
## Why
- [Dependabot doesn't support Yarn 2 yet.](https://github.com/dependabot/dependabot-core/issues/1297)
- [Renovate doesn't support Yarn 2 yet.](https://github.com/renovatebot/renovate/issues/5230)
- Yarn doesn't have command to bump packages automatically.\
(Only interactive one)## Roadmap
These plugins will be used in the very short term while waiting for a better option.
Only essential features would be implemented.
- [x] Package bumping (yarn up is used as it is)
- [x] Package filtering
- [x] Workspace support (unstable yet, see [#9](https://github.com/cometkim/yarn-plugin-bump/issues/9))
- [ ] Simple markdown formattingAdvanced features like semver range support and fetching release notes are not planned for now.
But feel free to fork this project, or send an issue about any idea you have.
## Install
```bash
yarn plugin import https://github.com/cometkim/yarn-plugin-bump/releases/download/v0.0.7/plugin-bump.js
```## How to use
Simple run to upgrade all your dependencies
```bash
yarn bump
```There's more options to specify the range, See `yarn bump --help`.
```bash
A Yarn 2 plugin to easily upgrade dependencies.Usage:
$ yarn bump [--exclude #0] [--kind #0] ...
Details:
A Yarn 2 plugin for upgrading PnP-mode dependencies easily with a dead-simple
command and no waste of interactions.Examples:
Upgrade all dependencies
$ yarn bumpUpgrade only the lodash package
$ yarn bump ^lodash$Upgrade packages match with "^gatsby-*"
$ yarn bump "^gatsby-*"Upgrade only exclude react and react-dom
$ yarn bump --exclude react --exclude react-domUpgrade only development dependencies
$ yarn bump --kind developmentUpgrade only production dependencies
$ yarn bump --kind production
```## Using the plugin through GitHub action
Example 1. Bumping all dependencies and devDependencies and push it to bump-all branch every saturday.
```yml
on:
schedule: "0 0 * * 6"name: Bumping dependencies
jobs:
bump-all:
- name: Checkout
uses: actions/checkout@v2
with:
ref: master- name: Bump up Yarn 2 dependencies
uses: cometkim/yarn-plugin-bump@master
with:
branch: dependencies/all- name: Sync dependency update branch with Pull Request
uses: vsoch/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_FROM_BRANCH: dependencies/all
```