box:
    id: node:8-alpine

build:
  steps:
    - script:
        name: install dependencies
        code: |
            export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
            export NODE_ENV=development
            HOME=$YARN_CACHE yarn
    - script:
        name: build
        code: |
            npm run build
    - script:
        name: test
        code: |
            npm run test
    - script:
        name: docs
        code: |
            npm run docs
            cp -R examples/* docs

deploy:
  steps:
    - install-packages:
        packages: git ssh-client
    - lukevivier/gh-pages@0.2.1:
        token: $GIT_TOKEN
        basedir: docs

box:
    id: node:8-alpine

build:
  steps:
    - script:
        name: install dependencies
        code: |
            export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
            export NODE_ENV=development
            HOME=$YARN_CACHE yarn
    - script:
        name: build
        code: |
            npm run build
    - script:
        name: test
        code: |
            npm run test
    - script:
        name: docs
        code: |
            npm run docs
            cp -R examples/* docs

deploy:
  box:
    id: tetsuo/electron-ready:4
  steps:
    - install-packages:
        packages: git ssh-client
    - lukevivier/gh-pages@0.2.1:
        token: $GIT_TOKEN
        basedir: docs

Use tetsuo/electron-ready:4 for deploying gh-pages
Use tetsuo/electron-ready:4 for deploying gh-pages
