Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
version: 2
jobs:
build:
working_directory: ~/grow
docker:
- image: grow/base:master
steps:
- checkout
- restore_cache:
keys:
- &cache_key grow-cache-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
- run:
name: Grow Install
command: grow install
- save_cache:
key: *cache_key
paths:
- node_modules
- run:
name: Grow Build
command: grow build --deployment grow.io
- run:
name: Deploy to Prod
command: if [ "$CIRCLE_BRANCH" == "master" ] && [ "$CIRCLE_PULL_REQUEST" == "" ] ; then grow deploy --noconfirm grow.io && grow deploy --noconfirm grow.dev; fi
- persist_to_workspace:
root: ~/grow
paths:
- build/*
snapshot:
working_directory: ~/grow
docker:
- image: zoramite/percy-base:latest
steps:
- attach_workspace:
at: ~/grow
- run:
name: Percy Snapshots
command: percy snapshot --widths "412,1280" --enable_javascript build/
workflows:
version: 2
build:
jobs:
- build
- snapshot:
requires:
- build