Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 467 Bytes

File metadata and controls

29 lines (23 loc) · 467 Bytes
description
How to setup Gitlab CI with GraphQL Editor Shared worker deployment

Gitlab CI

{% hint style="info" %} To get GRAPHQL_EDITOR_TOKEN variable run the token command {% endhint %}

image: node:14

stages:
  - deploy

deploy:
  only:
    - main
  stage: deploy
  variables:
    GRAPHQL_EDITOR_TOKEN: $GRAPHQL_EDITOR_TOKEN
  script:
    - npm i
    - |
      npx graphql-editor-cli deploy \
      -e SECRET_VALUE=$SECRET_VALUE