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

task(post-release-2.81.0): clean up keys (#4900) #1644

task(post-release-2.81.0): clean up keys (#4900)

task(post-release-2.81.0): clean up keys (#4900) #1644

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