First, we need to set up our graph. Follow the instructions below to get started.
You will:
- create a graph in Studio
- configure a GitHub repository using the template
- clone the repository locally
Create a graph in Studio
In the Studio organization, click on the Add graph button.
Give the graph a name. Append your own name or initials to the end to make it unique.
Leave the defaults as-is, keeping the architecture as Supergraph, then click Add graph.
Take note of your graph's ID.
Configure GitHub repository
Go to the workshop's project repository and click Use this template.
Make sure the Owner is set to your own personal GitHub account.
Give it a name, we'll use
apollo-operator-demo.Set the visibility to
Public.Click Create repository.
Go to Settings -> Actions -> General.
Scroll down to Workflow Permissions and enable "Read and write permissions" under .
Enable "Allow GitHub Actions to create and approve pull requests".
Click Save.
Run GitHub Actions
In GitHub, navigate to the Actions tab.
Select the Setup Repository workflow.
Click Run workflow, then enter the Graph ID you chose in Studio, followed by
@current.Click Run workflow. After the workflow finishes, you should see a PR in the repository.
Merge PR
Navigate to Pull Requests.
Check the open PR.
Merge the PR. This triggers a build.
After a few moments, you should see the reviews package released in your repo homepage under the Packages section.
Clone repo locally
Clone your repository to your local machine.
git clone https://github.com/<YOUR_GITHUB_USERNAME>/apollo-operator-demo.git