Need to do CI build using Helm charts

Hi, I need to build CI pipeline where it will download the updates and dependencies for unmanaged Helm repositories where chart.yaml, templates etc., are all present in github.
Once helm package is done it will upload it to artifactory.

So, Is there is a way to do helm build in pipeline by including in build stage by adding step other than using deploy stage?