Commit 4d2f9e49 authored by Richard Crosby's avatar Richard Crosby

chore: change schema locations and how packages are published

parent 95790a17
Pipeline #24293 passed with stages
in 1 minute and 6 seconds
......@@ -10,7 +10,7 @@ register_graphql_production:
before_script:
- npm install -g apollo
script:
- apollo service:push --key="${ENGINE_API_KEY}" --serviceName="${CI_PROJECT_NAME}" --serviceRevision="${CI_COMMIT_TAG}" --serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql" --localSchemaFile=build/schema.gql --tag=${BBK_RUNTIME_ENVIRONMENT}
- apollo service:push --key="${ENGINE_API_KEY}" --serviceName="${CI_PROJECT_NAME}" --serviceRevision="${CI_COMMIT_TAG}" --serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql" --localSchemaFile=src/schema.gql --tag=${BBK_RUNTIME_ENVIRONMENT}
only:
- tags
......@@ -26,6 +26,6 @@ register_graphql_staging:
before_script:
- npm install -g apollo
script:
- apollo service:push --key="${ENGINE_API_KEY}" --serviceName="${CI_PROJECT_NAME}" --serviceRevision="${CI_COMMIT_REF_SLUG}" --serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql" --localSchemaFile=build/schema.gql --tag=${BBK_RUNTIME_ENVIRONMENT}
- apollo service:push --key="${ENGINE_API_KEY}" --serviceName="${CI_PROJECT_NAME}" --serviceRevision="${CI_COMMIT_REF_SLUG}" --serviceURL="http://${CI_PROJECT_PATH_SLUG}.${CI_PROJECT_NAMESPACE}:${APP_PORT}/graphql" --localSchemaFile=src/schema.gql --tag=${BBK_RUNTIME_ENVIRONMENT}
only:
- master
\ No newline at end of file
release_automatically:
extends: .release
dependencies:
- build_npm_package
artifacts:
paths:
- build
script:
- echo '//registry.npmjs.org/:_authToken=${SECRET_NPM_TOKEN}' > .npmrc
- npm publish --access public
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment