If you just focus your job on completing tasks, you will be vulnerable to losing your job in a digital transformation—because tasks can always be automated.
However, if you focus on giving value (sometimes going beyond assigned tasks) and building relationships with superiors and co-workers, you will become indispensable, and are less likely to lose your job.