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

bug(COR-1915): Fixed 3 months period showing 4 dates (#4980) #1700

bug(COR-1915): Fixed 3 months period showing 4 dates (#4980)

bug(COR-1915): Fixed 3 months period showing 4 dates (#4980) #1700

name: Synchronize Sanity Lokalize
on:
push:
branches:
- develop
jobs:
sync-after-feature:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [ 18 ]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- 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