There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
ci: add compressed-size.yml (#1328)
Himself65bf6d4e1fed9e
diff --git a/.github/workflows/compressed-size.yml b/.github/workflows/compressed-size.ymlnew file mode 100644index 0000000000..a838ba4e1f--- /dev/null+++ b/.github/workflows/compressed-size.yml@@ -0,0 +1,35 @@+name: Compressed Size++on: [pull_request]++jobs:+ build:+ runs-on: ubuntu-latest++ steps:+ - uses: actions/checkout@v3+ - uses: pnpm/action-setup@v2+ - uses: actions/setup-node@v3+ with:+ node-version-file: '.nvmrc'+ registry-url: https://npm.pkg.github.com+ scope: '@toeverything'+ cache: 'pnpm'+ - uses: actions/cache@v3+ with:+ path: |+ ${{ github.workspace }}/apps/web/.next/cache+ key: ${{ runner.os }}-affine-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}+ restore-keys: |+ ${{ runner.os }}-affine-${{ hashFiles('**/pnpm-lock.yaml') }}-+ - name: Build+ run: |+ pnpm install --frozen-lockfile+ pnpm run build+ - uses: preactjs/compressed-size-action@v2+ env:+ ENABLE_DEBUG_PAGE: ''+ with:+ repo-token: '${{ secrets.GITHUB_TOKEN }}'+ build-script: 'export'+ pattern: 'apps/web/out/**/*.{js,css,html,json}'