Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

ci: ci integration

ci: ci integration #4

Workflow file for this run

name: dev-release
on:
push:
branches:
- dev
# allow manual dispatch on action tab
workflow_dispatch:
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
the-graph-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-main-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-main-
- name: Git clone the repository
uses: actions/checkout@v4
- run: yarn install --prefer-offline --dev
- run: graph codegen && graph build && graph auth --studio ${{ runner.os }}