Skip to content

Instantly share code, notes, and snippets.

@devilleweppenaar
Last active May 19, 2019 20:48
Show Gist options
  • Save devilleweppenaar/be87939972870b62d7715e0dc4dcd29e to your computer and use it in GitHub Desktop.
Save devilleweppenaar/be87939972870b62d7715e0dc4dcd29e to your computer and use it in GitHub Desktop.
yarn with wercker - build step
build:
steps:
- script:
name: install yarn
code: npm install -g yarn
- script:
name: report yarn version
code: yarn --version
- script:
name: set yarn cache
code: export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
- script:
name: install dependencies
code: HOME=$YARN_CACHE yarn
- script:
name: test
code: yarn test:ci
- script:
name: coverage
code: yarn coverage
- script:
name: lint
code: yarn lint
- script:
name: build
code: yarn build
- script:
name: copy build output
code: cp -R build/ $WERCKER_OUTPUT_DIR
- script:
name: copy firebase config
code: cp firebase.json $WERCKER_OUTPUT_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment