description |
---|
How to setup Gitlab CI with GraphQL Editor Shared worker deployment |
{% 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