Skip to content

Instantly share code, notes, and snippets.

@kwiss
Created February 29, 2020 14:09
Show Gist options
  • Save kwiss/3fcbc2861ded5064cae3a55d54334069 to your computer and use it in GitHub Desktop.
Save kwiss/3fcbc2861ded5064cae3a55d54334069 to your computer and use it in GitHub Desktop.
.base_yarn_workspace_install:
stage: "Prepare"
image: node:13-alpine
interruptible: true
script:
- "[[ type jq ]] || apk add jq=~1"
- apk add --no-cache --virtual .gyp make python gcc postgresql-dev g++
- "{ rm package.json; jq 'del(.dependencies) | del(.devDependencies)' > package.json; } < package.json"
- yarn config set cache-folder $CI_PROJECT_DIR/.yarn
- yarn --frozen-lockfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment