Предполагается что у вас уже настроена yc. Это CLI понадобится для скрипта деплоя.
Дальше все просто.
- Создать файл
.env
из шаблона из.env.template
и заполнить npm install
npm run deploy
Код функции не уровня production, но как отправная точка вполне ок.
Deploy script можно запустить в mingw (git bash).
Возможно потребуются права администаратора.