Currently we're keeping all built asset files in the repo because back when we started the project there wasn't any way to run Node on Toolforge. There now is, so we can get rid of these files.
The existing deploy script runs both composer and npm in the same place. This isn't great because it doesn't allow for specifying the particular version of either.
It'd be good to split the deploy into two parts: the first that does what it currently does and pulls the latest tagged version; and the second that creates toolforge jobs to run composer and npm. For example:
cd ~/tool git pull origin main # Or the latest tag etc. cd toolforge-jobs load job-deploy.yaml
--- - name: composer-install command: composer -d tool --no-dev -o install image: tf-php74 - name: npm-build command: cd tool && npm install && npm run build image: tf-node16