Make sure the paths are correct for the paths where you checked out the respective code.
#!/usr/bin/env sh
run() {
echo "~~~~~~~~~~~~~~~~~~~~~~~"
echo "$1"
echo "~~~~~~~~~~~~~~~~~~~~~~~"
eval "$1"
echo ""
echo ""
}
run "cd ~/src/GenSpectrum/dashboard-components/components"
run "npm i"
run "npm ci"
run "npm run build"
run "cd ~/src/GenSpectrum/dashboards/website"
run "npm i ../../dashboard-components/components"
run "npm run check-types"