fix(release): make an error generic function
fix(release): make an workspace cleaner generic function