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

feat(COR-1420): Added required redirects for NL and GM levels (#4833) #1588

feat(COR-1420): Added required redirects for NL and GM levels (#4833)

feat(COR-1420): Added required redirects for NL and GM levels (#4833) #1588

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