rush-update
Utillity to auto update dependencies in all rush projects (including the shrinkwrap file) and create a PR on github.
Meant to be used in CI/CD for repo using @microsoft/rush
Usage
rush-update [options] Options: --ignore-packages, -x Packages to ignore [default: []] --branch, -b Branch
Usage in CI
for example, here is a CircleCI config to run this script every night:
version: 2.1jobs: update_npm_dependencies: docker: - image: circleci/node:10 steps: - checkout - run: name: Configure git command: | git config user.email "auto-npm-dep-update@mydomain.com" git config user.name "autoupdate" - run: name: Update npm dependencies command: node common/scripts/install-run.js rush-update@latest rush-update -x @types/node --repo-owner reshufflehq --repo-name reshuffleworkflows: version: 2 nightly: triggers: - schedule: cron: "0 0 * * *" filters: branches: only: - master jobs: - update_npm_dependencies