Avoid heat. The hotter the quicker the degradation.
Avoid storing your battery fully charged for long periods (especially when it is hot). This is ore a problem with LMN and LFP, less so with NCA cells, so depends on the type of battery.
Avoid deep cycles if possible. (usually you can not really deep cycle an OEM ebike battery, the BMS will not allow that)
Do not (quick) charge a cold (below 0°C) Li-Ion battery. This will not only degrade the battery but can become a security threat if lithium dendrites grow inside the battery.
That's most of it.