Readable workflow export & deployment pipeline for multi-environment CI/CD
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Create folders and run n8n cli (Execute Command): runs a shell command on the n8n host
- load exported workflows (Read/Write Files from Disk): reads a file from disk
- parse workflow (Extract from File): extracts data from a file (from json)
- Remove root node (Edit Fields (Set)): sets or maps fields
- Create JSON file with readable name (Convert to File): converts data to a file (to json)
- TAG? Auto deploy to dev (If): checks a condition and branches into true / false
- TAG? Auto deploy to PROD (If): checks a condition and branches into true / false
- Store named workflow (Read/Write Files from Disk): writes a file to disk
- Create JSON file with readable name (dev) (Convert to File): converts data to a file (to json)
- Create JSON file with readable name (prod) (Convert to File): converts data to a file (to json)
…plus 2 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Manual Trigger
n8n-nodes-base.manualTrigger - Execute Command
n8n-nodes-base.executeCommand - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Extract from File
n8n-nodes-base.extractFromFile - Convert to File
n8n-nodes-base.convertToFile
From the author
This n8n workflow template uses community nodes and is only compatible with the self-hosted version of n8n. Export workflows with readable names, tagged for different environments To ensure understandable workflow exports, ease of use in delivery pipelines,…