Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

circleci-update-yarn-lock

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circleci-update-yarn-lock

Shell script to update your yarn lock file after greenkeeper pulls

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

CircleCI update yarn.lock

Script to update your yarn.lock file from CircleCI, run this after every greenkeeper PR.

Usage

Use this script to update your yarn.lock file whenever greenkeeper reminds you to update.

Install

You need to add this module to your package.json.

yarn add --dev circleci-update-yarn-lock

Then add this to your package.json scripts. The following script setup will work for the configure step next.

"scripts": {
  "update-yarn-lock-file": "update-yarn-lock-file"
},

Configure

Add the following to your circle.yml file to watch for greenkeeper branches and run this script when it sees them.

deployment:
  greenkeeper:
    branch: /greenkeeper\/.*/
    commands:
      - yarn run update-yarn-lock-file

SSH Key for Write Access

In order to deploy from your CI to your repository you need to give CircleCI write access via an SSH key.

Follow the CircleCI instructions for adding read/write deployment key.

Once you'd added the key you should see your builds working.

Development

Requirements

  • yarn.
brew install yarn

Clone Repository

git clone --recurse-submodules git@github.com:clarkbw/circleci-update-yarn-lock.git
cd circleci-update-yarn-lock

Tests

Requirements

brew install bats
  • git submodules. We use some nicer scripts with bats and this requires some additional modules
git submodule sync
git submodule update --init

Running Tests

yarn test

FAQs

Package last updated on 20 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc