From 5f48ee9bf59aa8f2d6b23f91034cc157e120fca6 Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Thu, 5 Sep 2024 13:19:05 +0200 Subject: [PATCH] chore: Enhanced GA CI with cache --- .github/actions/setup_argos/action.yml | 2 +- .github/workflows/deploy.yml | 18 ++++++++++-------- react/MuiCozyTheme/index.jsx | 4 ++++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/actions/setup_argos/action.yml b/.github/actions/setup_argos/action.yml index d45baa1cb8..40e49dc158 100644 --- a/.github/actions/setup_argos/action.yml +++ b/.github/actions/setup_argos/action.yml @@ -17,4 +17,4 @@ runs: if: ${{ steps.cache-node-modules-puppeteer.outputs.cache-hit != 'true' }} shell: bash run: | - yarn add puppeteer@"21.11.0" --dev --exact + yarn add puppeteer@"22.15.0" --dev --exact diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a468ac0711..e26b50797e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -59,7 +59,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup_argos - - uses: ./.github/actions/build_cache + - uses: ./.github/actions/build_cache_read - uses: ./.github/actions/build_argos_desktop_cache - name: Argos - Create desktop screenshots run: | @@ -71,7 +71,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup_argos - - uses: ./.github/actions/build_cache + - uses: ./.github/actions/build_cache_read - uses: ./.github/actions/build_argos_mobile_cache - name: Argos - Create mobile screenshots run: | @@ -83,7 +83,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup_argos - - uses: ./.github/actions/build_cache + - uses: ./.github/actions/build_cache_read - uses: ./.github/actions/build_argos_kss_cache - name: Argos - Create kss screenshots run: | @@ -110,9 +110,11 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup_modules - - uses: ./.github/actions/build_cache + - uses: ./.github/actions/build_cache_read - name: Deploy - if: ${{ github.ref_name == 'master' }} - run: | - yarn deploy:doc --username cozycloud --email contact@cozycloud.cc --repo https://cozy-bot:$GH_TOKEN@github.com/cozy/cozy-ui.git - yarn semantic-release + # if: ${{ github.ref_name == 'master' }} + # run: | + # yarn deploy:doc --username cozycloud --email contact@cozycloud.cc --repo https://cozy-bot:$GH_TOKEN@github.com/cozy/cozy-ui.git + # yarn semantic-release + run: yarn git-directory-deploy --directory ./ --branch build-jf --username cozycloud --email contact@cozycloud.cc --repo https://cozy-bot:$GH_TOKEN@github.com/cozy/cozy-ui.git + diff --git a/react/MuiCozyTheme/index.jsx b/react/MuiCozyTheme/index.jsx index 6254bc3e77..e51a381b94 100644 --- a/react/MuiCozyTheme/index.jsx +++ b/react/MuiCozyTheme/index.jsx @@ -4,6 +4,10 @@ import React from 'react' import { getTheme } from './theme' import { ThemeProvider } from '../styles' +console.log(' ') +console.log('🟢 BUILDED FROM GA WITH CACHE') +console.log(' ') + const MuiCozyTheme = ({ type, variant, children }) => { const theme = getTheme(type, variant)