hunk.code_window:         uses: ./.github/actions/setup-node
         - name: Build AFFiNE native
           uses: ./.github/actions/build-rust
           with:
             target: ${{ matrix.spec.target }}
         - uses: actions/download-artifact@v3
           with:
             name: before-make-web-static
             path: apps/electron/resources/web-static
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:           nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
  
hunk.file_path: .github/workflows/release-desktop-app.yml
hunk.type: add
file: import { currentAffineUserAtom } from '@affine/workspace/affine/atom';
  import type { AccessTokenMessage } from '@affine/workspace/affine/login';
  import { useAtomValue } from 'jotai';
  
  export function useCurrentUser(): AccessTokenMessage | null {
    return useAtomValue(currentAffineUserAtom);
  }
  