This ready-to-import n8n workflow automatically keeps your self-hosted n8n instance on the latest stable version – no manual updates ever again.
How it works (runs daily at 00:11 or on any schedule you set):
1. Fetches the official n8n metadata from the npm registry
2. Runs `n8n --version` locally
3. Compares versions in a Code node
4. If a newer stable release exists → one single Execute Command node does everything:
npm install -g n8n@stable --force && systemctl restart n8n
5. Sends a clean Telegram notification with old → new version number
Key benefits
- 100 % hands-free updates (perfect for production servers)
- Only upgrades to @stable tag (never next/beta)
- Single command upgrade + restart = zero downtime in most cases
- Works out-of-the-box on Ubuntu/Debian with systemd
- Easily adaptable for PM2, Docker, screen/tmux, etc.
- Safe: only runs when an update is actually available
Setup in 60 seconds
1. Import the workflow
2. Add your Telegram bot credentials & replace YOUR_CHAT_ID_HERE
3. (Optional) adjust the schedule or restart command for your environment
4. Activate → done!
Ideal for anyone running n8n via npm + systemd who wants to sleep well knowing the instance is always patched and up-to-date.
Enjoy truly set-and-forget n8n maintenance!