rush-update
Utility to auto update dependencies in all rush projects
Last updated a year ago by binaris .
MIT · Original npm · Tarball · package.json
$ cnpm install rush-update 
SYNC missed versions from official npm registry.

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 for commiting changes      [default: "update-npm-dependencies"]
  --commit-message         Commit message for npm updates    [default: "Update npm dependencies"]
  --change-commit-message  Commit message for 'rush change'  [default: "Generate change files"]
  --repo-owner             Username or Organization name on github
  --repo-name              Name of the repository on github
  --pr-base                Base branch for pull-request      [default: "master"]
  --pr-title               Pull request title                [default: "Update npm dependencies"]
  --pr-body                Pull request body                 [default: "This PR was auto-generated with rush-update."]
  --gh-username            Github username (for authentication)
  --gh-apikey              Github apikey
  --no-commit              Doesn't commit changes
  --no-change-file         Doesn't create a change file (rush change)
  --no-push                Commit changes but don't push to remote
  --no-pr                  Commit and push to remote but don't create a pull request

# example with rush script
node common/scripts/install-run.js rush-update@latest -x @types/node --repo-owner reshufflehq --repo-name reshuffle --gh-apikey 1234qweasd --gh-username shift-circleci

Usage in CI

for example, here is a CircleCI config to run this script every night:

version: 2.1
jobs:
  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 reshuffle
workflows:
  version: 2
  nightly:
    triggers:
       - schedule:
           cron: "0 0 * * *"
           filters:
             branches:
               only:
                 - master
    jobs:
      - update_npm_dependencies

Current Tags

  • 1.2.2-beta                                ...           beta (a year ago)
  • 1.2.4                                ...           latest (a year ago)
  • 1.2.4                                ...           next (a year ago)

12 Versions

  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.2-beta                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.1-beta                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |