This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
Fix/cor 1784 correct vaccine adminstered graphs (#4891) #1638
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: Synchronize Sanity Lokalize | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
sync-after-feature: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn config get cacheFolder)" | |
- name: Lookup cached node_modules | |
uses: actions/cache@v2 | |
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-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install packages | |
run: yarn install | |
- name: Build common module | |
run: yarn workspace @corona-dashboard/common build | |
- name: Build icons module | |
run: yarn workspace @corona-dashboard/icons build | |
- name: Synchronize texts | |
run: SANITY_AUTH_TOKEN=${{ secrets.SANITY_AUTH_TOKEN }} yarn workspace @corona-dashboard/cms lokalize:sync-after-feature | |
- name: Export production texts | |
run: yarn workspace @corona-dashboard/cms lokalize:import --dataset=production --clean-json | |
- name: Typecheck all code with production texts | |
run: yarn workspace @corona-dashboard/app typecheck |