All Projects → taichi → Ci Yarn Upgrade

taichi / Ci Yarn Upgrade

Licence: apache-2.0
Keep NPM dependencies up-to-date with CI, providing version-to-version diff for each library

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ci Yarn Upgrade

abilitysheet
This app is ability sheet for beatmania iidx music of level 12.
Stars: ✭ 38 (-55.29%)
Mutual labels:  circleci, yarn
cimg-node
The CircleCI Node.js Docker Convenience Image.
Stars: ✭ 35 (-58.82%)
Mutual labels:  circleci, yarn
Express Webpack React Redux Typescript Boilerplate
🎉 A full-stack boilerplate that using express with webpack, react and typescirpt!
Stars: ✭ 156 (+83.53%)
Mutual labels:  yarn, circleci
Salus
Security scanner coordinator
Stars: ✭ 441 (+418.82%)
Mutual labels:  yarn, circleci
Create React App
Yarn Workspaces Monorepo support for Create-React-App / React-Scripts.
Stars: ✭ 76 (-10.59%)
Mutual labels:  yarn
Rubel
Rubel is a cms built with Laravel and React.
Stars: ✭ 70 (-17.65%)
Mutual labels:  circleci
Generator Rn Toolbox
The React Native Generator to bootstrap your apps
Stars: ✭ 1,155 (+1258.82%)
Mutual labels:  yarn
Jumbune
Jumbune, an open source BigData APM & Data Quality Management Platform for Data Clouds. Enterprise feature offering is available at http://jumbune.com. More details of open source offering are at,
Stars: ✭ 64 (-24.71%)
Mutual labels:  yarn
Flow Mono Cli
A command line interface that aims to solve a few issues while working with flow typed codebases in a mono-repo.
Stars: ✭ 84 (-1.18%)
Mutual labels:  yarn
Dfile
[Python + Flask] DFile: A fancy S3-based file sharing mode
Stars: ✭ 79 (-7.06%)
Mutual labels:  yarn
Docker Ruby Node
🐳 Alpine Docker Image with latest versions of Ruby, Node.js and yarn installed. This Docker Image is actively maintained and updated regularly.
Stars: ✭ 74 (-12.94%)
Mutual labels:  yarn
Vitamin Web
Decathlon Design System libraries for web applications
Stars: ✭ 70 (-17.65%)
Mutual labels:  yarn
Tf Yarn
Train TensorFlow models on YARN in just a few lines of code!
Stars: ✭ 76 (-10.59%)
Mutual labels:  yarn
Wikiloop Doublecheck
WikiLoop DoubleCheck: a web tool to help review Wikipedia edits easily and collaboratively.
Stars: ✭ 70 (-17.65%)
Mutual labels:  circleci
Rails Webpacker
Rails on webpack and yarn with new webpacker gem. Multiple examples using react, vue and angular
Stars: ✭ 80 (-5.88%)
Mutual labels:  yarn
Package.json
文件 package.json 的说明文档。
Stars: ✭ 67 (-21.18%)
Mutual labels:  yarn
Vue Admin Element
(Vue2 演示项目)物业后台管理系统 - ElementUI ( 基本结构已完成, 剩下的就是具体业务开发; 如有疑问请留言 )
Stars: ✭ 73 (-14.12%)
Mutual labels:  yarn
Gatsby Themes
Get high-quality and customizable Gatsby themes to quickly bootstrap your website! Choose from many professionally created and impressive designs with a wide variety of features and customization options.
Stars: ✭ 1,208 (+1321.18%)
Mutual labels:  circleci
Openwrt Nanopi R2s
OpenWrt support for FriendlyElec NanoPi R2S RK3328 SoC board with 2x1000Mbps ports. This repository is not a fork of friendlywrt but a fork of upstream/openwrt.
Stars: ✭ 73 (-14.12%)
Mutual labels:  circleci
Blog By Nodejs
NodeJs + Mongoose + Express + jQuery + BootStrap + Ejs + Webpack搭建多人博客
Stars: ✭ 72 (-15.29%)
Mutual labels:  yarn

ci-yarn-upgrade CircleCI

this command no longer update.

successor tools is taichi/actions-package-update

This command keeps npm dependencies up-to-date by making pull requests from CI.

ci-yarn-upgrade

This is inspired by bitjourney/ci-npm-update.

Installation

yarn global add ci-yarn-upgrade

Usage

Setting Environment Variables to CircleCI

You can add environment variables using the Project settings > Environment Variables page of your project.

  • You should set GITHUB_ACCESS_TOKEN
  • You may set GIT_USER_NAME and GIT_USER_EMAIL
    • this appliction uses GIT_USER_NAME and GIT_USER_EMAIL for commit

Add DeployKey to GitHub from CircleCI

this command is pushing from build, so you should add read/write deployment key at Project settings > Checkout SSH keys page of your project.

Configure circle.yml

our complete example is here.

Use official Node image

Official Node image contains yarn command now.

docker:
  - image: node:10-alpine

Install git with SSH

Because ci-yarn-upgrade uses newer git feature.

run: apk add --update --no-cache git openssh-client

Configure Scheduling build

In the example below, the scheculed-upgrade workflow is configured to run every wednesday at 13:00pm UTC.

jobs:
  yarn-upgrade:
    docker:
      - image: node:10-alpine
    steps:
      - run: apk add --update --no-cache git openssh-client
      - checkout
      - run: yarn global add ci-yarn-upgrade
      - run: yarn install
      - run: ci-yarn-upgrade --execute --verbose;
workflows:
  version: 2
  scheculed-upgrade:
    triggers:
      - schedule:
          cron: "0 13 * * 3"
          filters:
            branches:
              only:
                - master
    jobs:
      - yarn-upgrade

Command Behavior

By default, ci-yarn-upgrade runs in dry-run mode.

ci-yarn-upgrade

this command works locally and output result to standard output.

dry-run

execution

ci-yarn-upgrade --execute

if you set --execute, this command push branch to remote, and make a pull request.

CLI options

Usage: ci-yarn-upgrade [options]

Keep NPM dependencies up-to-date with CI, providing version-to-version diff for each library

Options:

  -h, --help                   output usage information
  -V, --version                output the version number
  -n, --username <username>    specify the commit auther name. You may set GIT_USER_NAME to environment variable.
  -e, --useremail <useremail>  specify the commit auther email. You may set GIT_USER_EMAIL to environment variable.
  -t, --token <token>          specify personal access token for GitHub. use only for debugging purpose. You should set GITHUB_ACCESS_TOKEN to environment variable.
  --execute                    if you don't specify this option, allows you to test this application.
  -L, --latest                 if you specify this option, upgrades packages ignores the version range specified in package.json
  -v, --verbose                shows details about the running ci-yarn-upgrade
  -k, --keep                   if you specify this option, keep working branch after all.
  --prefix <prefix>            specify working branch prefix. default prefix is "yarn-upgrade/"
  --workingdir <path>          specify project root dir. it contains package.json. default path is /path/to/myproject
  --with-shadows               if you specify this option, shows shadow dependencies changes.

Development

Setup

git clone https://github.com/taichi/ci-yarn-upgrade
cd ci-yarn-upgrade
yarn install

License

Copyright 2016 taichi

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].