From 4311eb4089def5556c6c8a4d0383bdf94a1fa0d3 Mon Sep 17 00:00:00 2001 From: istarkov Date: Fri, 19 Apr 2024 19:06:03 +0300 Subject: [PATCH] Add comments --- .github/workflows/cli-r2.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli-r2.yaml b/.github/workflows/cli-r2.yaml index 945a45e706c9..4cbdf4e0efcf 100644 --- a/.github/workflows/cli-r2.yaml +++ b/.github/workflows/cli-r2.yaml @@ -43,16 +43,29 @@ jobs: - name: pnpm build run: pnpm --filter 'webstudio-cloudlfare-template^...' run build + # Ideally, execute 'pnpm deploy --prod', but @remix-run/dev doesn't support this flag. + # Despite being listed as a dependency, @remix-run/dev does not install the remix cli. - name: pnpm deploy run: pnpm --filter 'webstudio-cloudlfare-template' deploy "${{ github.workspace }}/../cloudlfare-template" - - name: cleanup cloudflare template + # Minimize artefact size due to frequent downloads on each publish. + # Consider removing large dev dependencies. + - name: minimize size of artefact run: | find . -name 'typescript@*' -type d -prune -exec rm -rf '{}' + && \ find . -name '@storybook*' -type d -prune -exec rm -rf '{}' + && \ find . -name 'eslint@*' -type d -prune -exec rm -rf '{}' + && \ find . -name '@types+node@*' -type d -prune -exec rm -rf '{}' + && \ - find . -name '@cloudflare+workers-types@*' -type d -prune -exec rm -rf '{}' + + find . -name '@cloudflare+workers-types@*' -type d -prune -exec rm -rf '{}' + && \ + find . -name '@types+node*' -type d -prune -exec rm -rf '{}' + && \ + find . -name '@typescript-eslint+eslint-plugin*' -type d -prune -exec rm -rf '{}' + && \ + find . -name '@cloudflare+workers-types*' -type d -prune -exec rm -rf '{}' + && \ + find . -name '@typescript-eslint+scope-manager*' -type d -prune -exec rm -rf '{}' + && \ + find . -name 'eslint-plugin-*' -type d -prune -exec rm -rf '{}' + && \ + find . -name 'puppeteer-core*' -type d -prune -exec rm -rf '{}' + && \ + find . -name '@jest*' -type d -prune -exec rm -rf '{}' + && \ + find . -name '@jspm+core*' -type d -prune -exec rm -rf '{}' + && \ + find . -name '@eslint*' -type d -prune -exec rm -rf '{}' + working-directory: ${{ github.workspace }}/../cloudlfare-template - name: Make archive