This repository has been archived by the owner on May 17, 2024. It is now read-only.
ci: ci integration #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |