omarelsayeed commited on
Commit
3de279d
·
verified ·
1 Parent(s): cf08cc4

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .devcontainer/Dockerfile +7 -0
  2. .devcontainer/devcontainer.json +19 -0
  3. .devcontainer/docker-compose.yml +24 -0
  4. .dockerignore +20 -0
  5. .editorconfig +20 -0
  6. .git-blame-ignore-revs +18 -0
  7. .gitattributes +116 -59
  8. .github/CODEOWNERS +1 -0
  9. .github/ISSUE_TEMPLATE/01-bug.yml +82 -0
  10. .github/ISSUE_TEMPLATE/config.yml +11 -0
  11. .github/actions/setup-and-build/action.yml +49 -0
  12. .github/docker-compose.yml +43 -0
  13. .github/pull_request_template.md +29 -0
  14. .github/pull_request_title_conventions.md +116 -0
  15. .github/scripts/bump-versions.mjs +55 -0
  16. .github/scripts/ensure-provenance-fields.mjs +44 -0
  17. .github/scripts/package.json +12 -0
  18. .github/scripts/trim-fe-packageJson.js +18 -0
  19. .github/scripts/update-changelog.mjs +39 -0
  20. .github/scripts/validate-docs-links.js +90 -0
  21. .github/workflows/benchmark-destroy-nightly.yml +46 -0
  22. .github/workflows/benchmark-nightly.yml +104 -0
  23. .github/workflows/check-documentation-urls.yml +47 -0
  24. .github/workflows/check-pr-title.yml +36 -0
  25. .github/workflows/check-run-eligibility.yml +109 -0
  26. .github/workflows/chromatic.yml +98 -0
  27. .github/workflows/ci-master.yml +80 -0
  28. .github/workflows/ci-postgres-mysql.yml +229 -0
  29. .github/workflows/ci-pull-requests.yml +67 -0
  30. .github/workflows/docker-base-image.yml +55 -0
  31. .github/workflows/docker-images-benchmark.yml +45 -0
  32. .github/workflows/docker-images-custom.yml +83 -0
  33. .github/workflows/docker-images-nightly.yml +50 -0
  34. .github/workflows/e2e-flaky.yml +68 -0
  35. .github/workflows/e2e-reusable.yml +177 -0
  36. .github/workflows/e2e-tests-pr.yml +79 -0
  37. .github/workflows/e2e-tests.yml +70 -0
  38. .github/workflows/linting-reusable.yml +60 -0
  39. .github/workflows/notify-pr-status.yml +27 -0
  40. .github/workflows/release-create-pr.yml +71 -0
  41. .github/workflows/release-publish.yml +210 -0
  42. .github/workflows/release-push-to-channel.yml +119 -0
  43. .github/workflows/test-workflows-callable.yml +215 -0
  44. .github/workflows/test-workflows-nightly.yml +26 -0
  45. .github/workflows/test-workflows-pr-approved.yml +27 -0
  46. .github/workflows/test-workflows-pr-comment.yml +112 -0
  47. .github/workflows/units-tests-reusable.yml +98 -0
  48. .gitignore +28 -0
  49. .npmignore +28 -0
  50. .npmrc +14 -0
.devcontainer/Dockerfile ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FROM n8nio/base:20
2
+
3
+ RUN apk add --no-cache --update openssh sudo shadow bash
4
+ RUN echo node ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/node && chmod 0440 /etc/sudoers.d/node
5
+ RUN mkdir /workspaces && chown node:node /workspaces
6
+ USER node
7
+ RUN mkdir -p ~/.pnpm-store && pnpm config set store-dir ~/.pnpm-store --global
.devcontainer/devcontainer.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "n8n",
3
+ "dockerComposeFile": "docker-compose.yml",
4
+ "service": "n8n",
5
+ "workspaceFolder": "/workspaces",
6
+ "mounts": [
7
+ "type=bind,source=${localWorkspaceFolder},target=/workspaces,consistency=cached",
8
+ "type=bind,source=${localEnv:HOME}/.ssh,target=/home/node/.ssh,consistency=cached",
9
+ "type=bind,source=${localEnv:HOME}/.n8n,target=/home/node/.n8n,consistency=cached"
10
+ ],
11
+ "forwardPorts": [8080, 5678],
12
+ "postCreateCommand": "corepack prepare --activate && pnpm install",
13
+ "postAttachCommand": "pnpm build",
14
+ "customizations": {
15
+ "codespaces": {
16
+ "openFiles": ["CONTRIBUTING.md"]
17
+ }
18
+ }
19
+ }
.devcontainer/docker-compose.yml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ volumes:
2
+ postgres-data:
3
+
4
+ services:
5
+ postgres:
6
+ image: postgres:16-alpine
7
+ restart: unless-stopped
8
+ volumes:
9
+ - postgres-data:/var/lib/postgresql/data
10
+ environment:
11
+ - POSTGRES_DB=n8n
12
+ - POSTGRES_PASSWORD=password
13
+
14
+ n8n:
15
+ build:
16
+ context: .
17
+ dockerfile: Dockerfile
18
+ volumes:
19
+ - ..:/workspaces:cached
20
+ command: sleep infinity
21
+ environment:
22
+ DB_POSTGRESDB_HOST: postgres
23
+ DB_TYPE: postgresdb
24
+ DB_POSTGRESDB_PASSWORD: password
.dockerignore ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ **/*.md
2
+ **/.env
3
+ .cache
4
+ assets
5
+ node_modules
6
+ packages/node-dev
7
+ packages/**/node_modules
8
+ packages/**/dist
9
+ packages/**/.turbo
10
+ packages/**/*.test.*
11
+ .git
12
+ .github
13
+ !.github/scripts
14
+ *.tsbuildinfo
15
+ packages/cli/dist/**/e2e.*
16
+ docker/compose
17
+ docker/**/Dockerfile
18
+ .vscode
19
+ cypress
20
+ test-workflows
.editorconfig ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = tab
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [package.json]
12
+ indent_style = space
13
+ indent_size = 2
14
+
15
+ [*.yml]
16
+ indent_style = space
17
+ indent_size = 2
18
+
19
+ [*.ts]
20
+ quote_type = single
.git-blame-ignore-revs ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Commits of large-scale changes to exclude from `git blame` results
2
+
3
+ # Set up linting and formatting (#2120)
4
+
5
+ 56c4c6991fb21ba4b7bdcd22c929f63cc1d1defe
6
+
7
+ # refactor(editor): Apply Prettier (no-changelog) #4920
8
+
9
+ 5ca2148c7ed06c90f999508928b7a51f9ac7a788
10
+
11
+ # refactor: Run lintfix (no-changelog) (#7537)
12
+
13
+ 62c096710fab2f7e886518abdbded34b55e93f62
14
+
15
+ # refactor: Move test files alongside tested files (#11504)
16
+
17
+ 7e58fc4fec468aca0b45d5bfe6150e1af632acbc
18
+ f32b13c6ed078be042a735bc8621f27e00dc3116
.gitattributes CHANGED
@@ -1,59 +1,116 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.lz4 filter=lfs diff=lfs merge=lfs -text
12
- *.mds filter=lfs diff=lfs merge=lfs -text
13
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
- *.model filter=lfs diff=lfs merge=lfs -text
15
- *.msgpack filter=lfs diff=lfs merge=lfs -text
16
- *.npy filter=lfs diff=lfs merge=lfs -text
17
- *.npz filter=lfs diff=lfs merge=lfs -text
18
- *.onnx filter=lfs diff=lfs merge=lfs -text
19
- *.ot filter=lfs diff=lfs merge=lfs -text
20
- *.parquet filter=lfs diff=lfs merge=lfs -text
21
- *.pb filter=lfs diff=lfs merge=lfs -text
22
- *.pickle filter=lfs diff=lfs merge=lfs -text
23
- *.pkl filter=lfs diff=lfs merge=lfs -text
24
- *.pt filter=lfs diff=lfs merge=lfs -text
25
- *.pth filter=lfs diff=lfs merge=lfs -text
26
- *.rar filter=lfs diff=lfs merge=lfs -text
27
- *.safetensors filter=lfs diff=lfs merge=lfs -text
28
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
- *.tar.* filter=lfs diff=lfs merge=lfs -text
30
- *.tar filter=lfs diff=lfs merge=lfs -text
31
- *.tflite filter=lfs diff=lfs merge=lfs -text
32
- *.tgz filter=lfs diff=lfs merge=lfs -text
33
- *.wasm filter=lfs diff=lfs merge=lfs -text
34
- *.xz filter=lfs diff=lfs merge=lfs -text
35
- *.zip filter=lfs diff=lfs merge=lfs -text
36
- *.zst filter=lfs diff=lfs merge=lfs -text
37
- *tfevents* filter=lfs diff=lfs merge=lfs -text
38
- # Audio files - uncompressed
39
- *.pcm filter=lfs diff=lfs merge=lfs -text
40
- *.sam filter=lfs diff=lfs merge=lfs -text
41
- *.raw filter=lfs diff=lfs merge=lfs -text
42
- # Audio files - compressed
43
- *.aac filter=lfs diff=lfs merge=lfs -text
44
- *.flac filter=lfs diff=lfs merge=lfs -text
45
- *.mp3 filter=lfs diff=lfs merge=lfs -text
46
- *.ogg filter=lfs diff=lfs merge=lfs -text
47
- *.wav filter=lfs diff=lfs merge=lfs -text
48
- # Image files - uncompressed
49
- *.bmp filter=lfs diff=lfs merge=lfs -text
50
- *.gif filter=lfs diff=lfs merge=lfs -text
51
- *.png filter=lfs diff=lfs merge=lfs -text
52
- *.tiff filter=lfs diff=lfs merge=lfs -text
53
- # Image files - compressed
54
- *.jpg filter=lfs diff=lfs merge=lfs -text
55
- *.jpeg filter=lfs diff=lfs merge=lfs -text
56
- *.webp filter=lfs diff=lfs merge=lfs -text
57
- # Video files - compressed
58
- *.mp4 filter=lfs diff=lfs merge=lfs -text
59
- *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.sh text eol=lf
2
+ assets/n8n-logo.png filter=lfs diff=lfs merge=lfs -text
3
+ assets/n8n-screenshot-readme.png filter=lfs diff=lfs merge=lfs -text
4
+ assets/n8n-screenshot.png filter=lfs diff=lfs merge=lfs -text
5
+ packages/@n8n/nodes-langchain/nodes/llms/LMChatAnthropic/anthropic.png filter=lfs diff=lfs merge=lfs -text
6
+ packages/@n8n/nodes-langchain/nodes/memory/MemoryZep/zep.png filter=lfs diff=lfs merge=lfs -text
7
+ packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreZep/zep.png filter=lfs diff=lfs merge=lfs -text
8
+ packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreZepInsert/zep.png filter=lfs diff=lfs merge=lfs -text
9
+ packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreZepLoad/zep.png filter=lfs diff=lfs merge=lfs -text
10
+ packages/cli/src/user-management/email/templates/n8n-logo.png filter=lfs diff=lfs merge=lfs -text
11
+ packages/frontend/@n8n/chat/resources/images/fullscreen.png filter=lfs diff=lfs merge=lfs -text
12
+ packages/frontend/@n8n/chat/resources/images/windowed.png filter=lfs diff=lfs merge=lfs -text
13
+ packages/frontend/@n8n/design-system/public/assets/images/storybook-logo-dark.png filter=lfs diff=lfs merge=lfs -text
14
+ packages/frontend/@n8n/design-system/public/assets/images/storybook-logo-light.png filter=lfs diff=lfs merge=lfs -text
15
+ packages/frontend/@n8n/design-system/src/css/fonts/InterVariable-Italic.woff2 filter=lfs diff=lfs merge=lfs -text
16
+ packages/frontend/@n8n/design-system/src/css/fonts/InterVariable.woff2 filter=lfs diff=lfs merge=lfs -text
17
+ packages/frontend/@n8n/i18n/docs/img/cred.png filter=lfs diff=lfs merge=lfs -text
18
+ packages/frontend/@n8n/i18n/docs/img/header1.png filter=lfs diff=lfs merge=lfs -text
19
+ packages/frontend/@n8n/i18n/docs/img/header2.png filter=lfs diff=lfs merge=lfs -text
20
+ packages/frontend/@n8n/i18n/docs/img/header3.png filter=lfs diff=lfs merge=lfs -text
21
+ packages/frontend/@n8n/i18n/docs/img/header4.png filter=lfs diff=lfs merge=lfs -text
22
+ packages/frontend/@n8n/i18n/docs/img/header5.png filter=lfs diff=lfs merge=lfs -text
23
+ packages/frontend/@n8n/i18n/docs/img/node1.png filter=lfs diff=lfs merge=lfs -text
24
+ packages/frontend/@n8n/i18n/docs/img/node2.png filter=lfs diff=lfs merge=lfs -text
25
+ packages/frontend/@n8n/i18n/docs/img/node4.png filter=lfs diff=lfs merge=lfs -text
26
+ packages/frontend/editor-ui/public/static/community_package_tooltip_img.png filter=lfs diff=lfs merge=lfs -text
27
+ packages/frontend/editor-ui/public/static/data-mapping-gif.gif filter=lfs diff=lfs merge=lfs -text
28
+ packages/frontend/editor-ui/public/static/google-auth/disabled.dark.png filter=lfs diff=lfs merge=lfs -text
29
+ packages/frontend/editor-ui/public/static/google-auth/disabled.png filter=lfs diff=lfs merge=lfs -text
30
+ packages/frontend/editor-ui/public/static/google-auth/focus.dark.png filter=lfs diff=lfs merge=lfs -text
31
+ packages/frontend/editor-ui/public/static/google-auth/focus.png filter=lfs diff=lfs merge=lfs -text
32
+ packages/frontend/editor-ui/public/static/google-auth/normal.dark.png filter=lfs diff=lfs merge=lfs -text
33
+ packages/frontend/editor-ui/public/static/google-auth/normal.png filter=lfs diff=lfs merge=lfs -text
34
+ packages/frontend/editor-ui/public/static/google-auth/pressed.dark.png filter=lfs diff=lfs merge=lfs -text
35
+ packages/frontend/editor-ui/public/static/google-auth/pressed.png filter=lfs diff=lfs merge=lfs -text
36
+ packages/frontend/editor-ui/public/static/n8n-logo.png filter=lfs diff=lfs merge=lfs -text
37
+ packages/frontend/editor-ui/public/static/og_image.png filter=lfs diff=lfs merge=lfs -text
38
+ packages/frontend/editor-ui/src/assets/images/doppler.webp filter=lfs diff=lfs merge=lfs -text
39
+ packages/frontend/editor-ui/src/assets/images/hashicorp.webp filter=lfs diff=lfs merge=lfs -text
40
+ packages/frontend/editor-ui/src/assets/images/infisical.webp filter=lfs diff=lfs merge=lfs -text
41
+ packages/nodes-base/credentials/icons/AlienVault.png filter=lfs diff=lfs merge=lfs -text
42
+ packages/nodes-base/credentials/icons/ConvertApi.png filter=lfs diff=lfs merge=lfs -text
43
+ packages/nodes-base/credentials/icons/Hybrid.png filter=lfs diff=lfs merge=lfs -text
44
+ packages/nodes-base/credentials/icons/Malcore.png filter=lfs diff=lfs merge=lfs -text
45
+ packages/nodes-base/credentials/icons/OpenCTI.png filter=lfs diff=lfs merge=lfs -text
46
+ packages/nodes-base/credentials/icons/Twake.png filter=lfs diff=lfs merge=lfs -text
47
+ packages/nodes-base/credentials/icons/Wazuh.png filter=lfs diff=lfs merge=lfs -text
48
+ packages/nodes-base/nodes/AcuityScheduling/acuityScheduling.png filter=lfs diff=lfs merge=lfs -text
49
+ packages/nodes-base/nodes/AgileCrm/agilecrm.png filter=lfs diff=lfs merge=lfs -text
50
+ packages/nodes-base/nodes/Automizy/automizy.png filter=lfs diff=lfs merge=lfs -text
51
+ packages/nodes-base/nodes/BambooHr/bambooHr.png filter=lfs diff=lfs merge=lfs -text
52
+ packages/nodes-base/nodes/Bannerbear/bannerbear.png filter=lfs diff=lfs merge=lfs -text
53
+ packages/nodes-base/nodes/Beeminder/beeminder.png filter=lfs diff=lfs merge=lfs -text
54
+ packages/nodes-base/nodes/Box/box.png filter=lfs diff=lfs merge=lfs -text
55
+ packages/nodes-base/nodes/Brandfetch/brandfetch.png filter=lfs diff=lfs merge=lfs -text
56
+ packages/nodes-base/nodes/Chargebee/chargebee.png filter=lfs diff=lfs merge=lfs -text
57
+ packages/nodes-base/nodes/Cisco/Webex/ciscoWebex.png filter=lfs diff=lfs merge=lfs -text
58
+ packages/nodes-base/nodes/Contentful/contentful.png filter=lfs diff=lfs merge=lfs -text
59
+ packages/nodes-base/nodes/CrateDb/cratedb.png filter=lfs diff=lfs merge=lfs -text
60
+ packages/nodes-base/nodes/Disqus/disqus.png filter=lfs diff=lfs merge=lfs -text
61
+ packages/nodes-base/nodes/Eventbrite/eventbrite.png filter=lfs diff=lfs merge=lfs -text
62
+ packages/nodes-base/nodes/FileMaker/filemaker.png filter=lfs diff=lfs merge=lfs -text
63
+ packages/nodes-base/nodes/Files/ReadWriteFile/test/image.jpg filter=lfs diff=lfs merge=lfs -text
64
+ packages/nodes-base/nodes/GetResponse/getResponse.png filter=lfs diff=lfs merge=lfs -text
65
+ packages/nodes-base/nodes/Google/CloudNaturalLanguage/googlecloudnaturallanguage.png filter=lfs diff=lfs merge=lfs -text
66
+ packages/nodes-base/nodes/Google/Contacts/googleContacts.png filter=lfs diff=lfs merge=lfs -text
67
+ packages/nodes-base/nodes/Google/Firebase/CloudFirestore/googleFirebaseCloudFirestore.png filter=lfs diff=lfs merge=lfs -text
68
+ packages/nodes-base/nodes/Google/Translate/googletranslate.png filter=lfs diff=lfs merge=lfs -text
69
+ packages/nodes-base/nodes/Google/YouTube/youTube.png filter=lfs diff=lfs merge=lfs -text
70
+ packages/nodes-base/nodes/Gotify/gotify.png filter=lfs diff=lfs merge=lfs -text
71
+ packages/nodes-base/nodes/GraphQL/graphql.png filter=lfs diff=lfs merge=lfs -text
72
+ packages/nodes-base/nodes/Gumroad/gumroad.png filter=lfs diff=lfs merge=lfs -text
73
+ packages/nodes-base/nodes/HackerNews/hackernews.png filter=lfs diff=lfs merge=lfs -text
74
+ packages/nodes-base/nodes/Harvest/harvest.png filter=lfs diff=lfs merge=lfs -text
75
+ packages/nodes-base/nodes/Hunter/hunter.png filter=lfs diff=lfs merge=lfs -text
76
+ packages/nodes-base/nodes/Iterable/iterable.png filter=lfs diff=lfs merge=lfs -text
77
+ packages/nodes-base/nodes/JotForm/jotform.png filter=lfs diff=lfs merge=lfs -text
78
+ packages/nodes-base/nodes/Keap/keap.png filter=lfs diff=lfs merge=lfs -text
79
+ packages/nodes-base/nodes/Line/line.png filter=lfs diff=lfs merge=lfs -text
80
+ packages/nodes-base/nodes/LingvaNex/lingvanex.png filter=lfs diff=lfs merge=lfs -text
81
+ packages/nodes-base/nodes/Matrix/matrix.png filter=lfs diff=lfs merge=lfs -text
82
+ packages/nodes-base/nodes/Medium/medium.png filter=lfs diff=lfs merge=lfs -text
83
+ packages/nodes-base/nodes/MonicaCrm/monicaCrm.png filter=lfs diff=lfs merge=lfs -text
84
+ packages/nodes-base/nodes/Nasa/nasa.png filter=lfs diff=lfs merge=lfs -text
85
+ packages/nodes-base/nodes/OpenThesaurus/openthesaurus.png filter=lfs diff=lfs merge=lfs -text
86
+ packages/nodes-base/nodes/Paddle/paddle.png filter=lfs diff=lfs merge=lfs -text
87
+ packages/nodes-base/nodes/Peekalink/peekalink.png filter=lfs diff=lfs merge=lfs -text
88
+ packages/nodes-base/nodes/Phantombuster/phantombuster.png filter=lfs diff=lfs merge=lfs -text
89
+ packages/nodes-base/nodes/PhilipsHue/philipshue.png filter=lfs diff=lfs merge=lfs -text
90
+ packages/nodes-base/nodes/Postmark/postmark.png filter=lfs diff=lfs merge=lfs -text
91
+ packages/nodes-base/nodes/Pushcut/pushcut.png filter=lfs diff=lfs merge=lfs -text
92
+ packages/nodes-base/nodes/QuestDb/questdb.png filter=lfs diff=lfs merge=lfs -text
93
+ packages/nodes-base/nodes/QuickBase/quickbase.png filter=lfs diff=lfs merge=lfs -text
94
+ packages/nodes-base/nodes/ReadBinaryFile/test/image.jpg filter=lfs diff=lfs merge=lfs -text
95
+ packages/nodes-base/nodes/Rundeck/rundeck.png filter=lfs diff=lfs merge=lfs -text
96
+ packages/nodes-base/nodes/S3/s3.png filter=lfs diff=lfs merge=lfs -text
97
+ packages/nodes-base/nodes/Salesmate/salesmate.png filter=lfs diff=lfs merge=lfs -text
98
+ packages/nodes-base/nodes/Sendy/sendy.png filter=lfs diff=lfs merge=lfs -text
99
+ packages/nodes-base/nodes/Signl4/signl4.png filter=lfs diff=lfs merge=lfs -text
100
+ packages/nodes-base/nodes/Spontit/spontit.png filter=lfs diff=lfs merge=lfs -text
101
+ packages/nodes-base/nodes/Stackby/stackby.png filter=lfs diff=lfs merge=lfs -text
102
+ packages/nodes-base/nodes/SyncroMSP/syncromsp.png filter=lfs diff=lfs merge=lfs -text
103
+ packages/nodes-base/nodes/SyncroMSP/v1/actions/syncromsp.png filter=lfs diff=lfs merge=lfs -text
104
+ packages/nodes-base/nodes/SyncroMSP/v1/syncromsp.png filter=lfs diff=lfs merge=lfs -text
105
+ packages/nodes-base/nodes/Toggl/toggl.png filter=lfs diff=lfs merge=lfs -text
106
+ packages/nodes-base/nodes/TravisCi/travisci.png filter=lfs diff=lfs merge=lfs -text
107
+ packages/nodes-base/nodes/Twake/twake.png filter=lfs diff=lfs merge=lfs -text
108
+ packages/nodes-base/nodes/Twist/twist.png filter=lfs diff=lfs merge=lfs -text
109
+ packages/nodes-base/nodes/UProc/uproc.png filter=lfs diff=lfs merge=lfs -text
110
+ packages/nodes-base/nodes/UnleashedSoftware/unleashedSoftware.png filter=lfs diff=lfs merge=lfs -text
111
+ packages/nodes-base/nodes/Uplead/uplead.png filter=lfs diff=lfs merge=lfs -text
112
+ packages/nodes-base/nodes/Workable/workable.png filter=lfs diff=lfs merge=lfs -text
113
+ packages/nodes-base/nodes/WriteBinaryFile/test/image.jpg filter=lfs diff=lfs merge=lfs -text
114
+ packages/nodes-base/nodes/Wufoo/wufoo.png filter=lfs diff=lfs merge=lfs -text
115
+ packages/nodes-base/nodes/Yourls/yourls.png filter=lfs diff=lfs merge=lfs -text
116
+ test-workflows/testData/pdfs/05-versions-space.pdf filter=lfs diff=lfs merge=lfs -text
.github/CODEOWNERS ADDED
@@ -0,0 +1 @@
 
 
1
+ packages/@n8n/db/src/migrations/ @n8n-io/migrations-review
.github/ISSUE_TEMPLATE/01-bug.yml ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Bug Report
2
+ description: Create a bug report to help us improve
3
+ body:
4
+ - type: markdown
5
+ attributes:
6
+ value: |
7
+ Thanks for taking the time to fill out this bug report!
8
+ - type: textarea
9
+ id: description
10
+ attributes:
11
+ label: Bug Description
12
+ description: A clear and concise description of what the bug is
13
+ placeholder: Tell us what you see!
14
+ validations:
15
+ required: true
16
+ - type: textarea
17
+ id: reproduction
18
+ attributes:
19
+ label: To Reproduce
20
+ description: Steps to reproduce the behavior
21
+ placeholder: |
22
+ 1. Go to '...'
23
+ 2. Click on '....'
24
+ 3. Scroll down to '....'
25
+ 4. See error
26
+ validations:
27
+ required: true
28
+ - type: textarea
29
+ id: expected
30
+ attributes:
31
+ label: Expected behavior
32
+ description: A clear and concise description of what you expected to happen
33
+ validations:
34
+ required: true
35
+ - type: markdown
36
+ attributes:
37
+ value: '## Environment'
38
+ - type: input
39
+ id: os
40
+ attributes:
41
+ label: Operating System
42
+ placeholder: ex. Ubuntu Linux 22.04
43
+ validations:
44
+ required: true
45
+ - type: input
46
+ id: n8n-version
47
+ attributes:
48
+ label: n8n Version
49
+ placeholder: ex. 1.25.0
50
+ validations:
51
+ required: true
52
+ - type: input
53
+ id: nodejs-version
54
+ attributes:
55
+ label: Node.js Version
56
+ placeholder: ex. 18.16.0
57
+ validations:
58
+ required: true
59
+ - type: dropdown
60
+ id: db
61
+ attributes:
62
+ label: Database
63
+ options:
64
+ - SQLite (default)
65
+ - PostgreSQL
66
+ - MySQL
67
+ - MariaDB
68
+ default: 0
69
+ validations:
70
+ required: true
71
+ - type: dropdown
72
+ id: execution-mode
73
+ attributes:
74
+ label: Execution mode
75
+ description: '[Info](https://docs.n8n.io/hosting/scaling/execution-modes-processes/)'
76
+ options:
77
+ - main (default)
78
+ - queue
79
+ - own (deprecated)
80
+ default: 0
81
+ validations:
82
+ required: true
.github/ISSUE_TEMPLATE/config.yml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Feature request
4
+ url: https://community.n8n.io
5
+ about: Suggest an idea for this project
6
+ - name: Question / Problem
7
+ url: https://community.n8n.io
8
+ about: Questions and problems with n8n
9
+ - name: n8n Security Vulnerability
10
+ url: https://n8n.io/legal/#vulnerability
11
+ about: Learn about our Vulnerability Disclosure Policy
.github/actions/setup-and-build/action.yml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: 'Setup Environment and Build Project'
2
+ description: 'Sets up Node.js with pnpm, installs dependencies, enables Turborepo caching, and builds the project.'
3
+
4
+ inputs:
5
+ node-version:
6
+ description: 'Node.js version to use.'
7
+ required: false
8
+ default: '22.x'
9
+ enable-caching:
10
+ description: Flag to enable/disable all caching (pnpm store, Turborepo, and dist folders).'
11
+ required: false
12
+ default: 'true'
13
+ cache-suffix:
14
+ description: 'Suffix to add to the dist folder cache key.'
15
+ required: false
16
+ default: 'build'
17
+
18
+ runs:
19
+ using: "composite"
20
+ steps:
21
+ - name: Setup pnpm CLI
22
+ uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
23
+ with:
24
+ run_install: false
25
+
26
+ - name: Setup Node.js
27
+ uses: useblacksmith/setup-node@v5
28
+ with:
29
+ node-version: ${{ inputs.node-version }}
30
+ cache: pnpm
31
+
32
+ - name: Install dependencies
33
+ run: pnpm install --frozen-lockfile
34
+ shell: bash
35
+
36
+ - name: Configure Turborepo Cache
37
+ if: inputs.enable-caching == 'true'
38
+ uses: useblacksmith/caching-for-turbo@v1
39
+
40
+ - name: Build packages
41
+ run: pnpm build
42
+ shell: bash
43
+
44
+ - name: Cache 'dist' folders
45
+ if: inputs.enable-caching == 'true'
46
+ uses: useblacksmith/cache@v5
47
+ with:
48
+ path: ./packages/**/dist
49
+ key: ${{ github.sha }}:${{ inputs.cache-suffix }}
.github/docker-compose.yml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ mariadb:
3
+ image: mariadb:10.5
4
+ environment:
5
+ - MARIADB_DATABASE=n8n
6
+ - MARIADB_ROOT_PASSWORD=password
7
+ - MARIADB_MYSQL_LOCALHOST_USER=true
8
+ ports:
9
+ - 3306:3306
10
+ tmpfs:
11
+ - /var/lib/mysql
12
+
13
+ mysql-8.0.13:
14
+ image: mysql:8.0.13
15
+ environment:
16
+ - MYSQL_DATABASE=n8n
17
+ - MYSQL_ROOT_PASSWORD=password
18
+ ports:
19
+ - 3306:3306
20
+ tmpfs:
21
+ - /var/lib/mysql
22
+
23
+ mysql-8.4:
24
+ image: mysql:8.4
25
+ environment:
26
+ - MYSQL_DATABASE=n8n
27
+ - MYSQL_ROOT_PASSWORD=password
28
+ ports:
29
+ - 3306:3306
30
+ tmpfs:
31
+ - /var/lib/mysql
32
+
33
+ postgres:
34
+ image: postgres:16
35
+ restart: always
36
+ environment:
37
+ - POSTGRES_DB=n8n
38
+ - POSTGRES_USER=postgres
39
+ - POSTGRES_PASSWORD=password
40
+ ports:
41
+ - 5432:5432
42
+ tmpfs:
43
+ - /var/lib/postgresql/data
.github/pull_request_template.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Summary
2
+
3
+ <!--
4
+ Describe what the PR does and how to test.
5
+ Photos and videos are recommended.
6
+ -->
7
+
8
+ ## Related Linear tickets, Github issues, and Community forum posts
9
+
10
+ <!--
11
+ Include links to **Linear ticket** or Github issue or Community forum post.
12
+ Important in order to close *automatically* and provide context to reviewers.
13
+ https://linear.app/n8n/issue/
14
+ -->
15
+ <!-- Use "closes #<issue-number>", "fixes #<issue-number>", or "resolves #<issue-number>" to automatically close issues when the PR is merged. -->
16
+
17
+
18
+ ## Review / Merge checklist
19
+
20
+ - [ ] PR title and summary are descriptive. ([conventions](../blob/master/.github/pull_request_title_conventions.md)) <!--
21
+ **Remember, the title automatically goes into the changelog.
22
+ Use `(no-changelog)` otherwise.**
23
+ -->
24
+ - [ ] [Docs updated](https://github.com/n8n-io/n8n-docs) or follow-up ticket created.
25
+ - [ ] Tests included. <!--
26
+ A bug is not considered fixed, unless a test is added to prevent it from happening again.
27
+ A feature is not complete without tests.
28
+ -->
29
+ - [ ] PR Labeled with `release/backport` (if the PR is an urgent fix that needs to be backported)
.github/pull_request_title_conventions.md ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PR Title Convention
2
+
3
+ We have very precise rules over how Pull Requests (to the `master` branch) must be formatted. This format basically follows the [Angular Commit Message Convention](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit). It leads to easier to read commit history and allows for automated generation of release notes:
4
+
5
+ A PR title consists of these elements:
6
+
7
+ ```text
8
+ <type>(<scope>): <summary>
9
+ │ │ │
10
+ │ │ └─⫸ Summary: In imperative present tense.
11
+ | | Capitalized
12
+ | | No period at the end.
13
+ │ │
14
+ │ └─⫸ Scope: API | benchmark | core | editor | * Node
15
+
16
+ └─⫸ Type: build | ci | chore | docs | feat | fix | perf | refactor | test
17
+ ```
18
+
19
+ - PR title
20
+ - type
21
+ - scope (_optional_)
22
+ - summary
23
+ - PR description
24
+ - body (optional)
25
+ - blank line
26
+ - footer (optional)
27
+
28
+ The structure looks like this:
29
+
30
+ ## Type
31
+
32
+ Must be one of the following:
33
+
34
+ | type | description | appears in changelog |
35
+ | --- | --- | --- |
36
+ | `feat` | A new feature | ✅ |
37
+ | `fix` | A bug fix | ✅ |
38
+ | `perf` | A code change that improves performance | ✅ |
39
+ | `test` | Adding missing tests or correcting existing tests | ❌ |
40
+ | `docs` | Documentation only changes | ❌ |
41
+ | `refactor` | A behavior-neutral code change that neither fixes a bug nor adds a feature | ❌ |
42
+ | `build` | Changes that affect the build system or external dependencies (TypeScript, Jest, pnpm, etc.) | ❌ |
43
+ | `ci` | Changes to CI configuration files and scripts (e.g. Github actions) | ❌ |
44
+ | `chore` | Routine tasks, maintenance, and minor updates not covered by other types | ❌ |
45
+
46
+ > BREAKING CHANGES (see Footer section below), will **always** appear in the changelog unless suffixed with `no-changelog`.
47
+
48
+ ## Scope (optional)
49
+
50
+ The scope should specify the place of the commit change as long as the commit clearly addresses one of the following supported scopes. (Otherwise, omit the scope!)
51
+
52
+ - `API` - changes to the _public_ API
53
+ - `benchmark` - changes to the benchmark cli
54
+ - `core` - changes to the core / private API / backend of n8n
55
+ - `editor` - changes to the Editor UI
56
+ - `* Node` - changes to a specific node or trigger node (”`*`” to be replaced with the node name, not its display name), e.g.
57
+ - mattermost → Mattermost Node
58
+ - microsoftToDo → Microsoft To Do Node
59
+ - n8n → n8n Node
60
+
61
+ ## Summary
62
+
63
+ The summary contains succinct description of the change:
64
+
65
+ - use the imperative, present tense: "change" not "changed" nor "changes"
66
+ - capitalize the first letter
67
+ - _no_ dot (.) at the end
68
+ - do _not_ include Linear ticket IDs etc. (e.g. N8N-1234)
69
+ - suffix with “(no-changelog)” for commits / PRs that should not get mentioned in the changelog.
70
+
71
+ ## Body (optional)
72
+
73
+ Just as in the **summary**, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.
74
+
75
+ ## Footer (optional)
76
+
77
+ The footer can contain information about breaking changes and deprecations and is also the place to [reference GitHub issues](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword), Linear tickets, and other PRs that this commit closes or is related to. For example:
78
+
79
+ ```text
80
+ BREAKING CHANGE: <breaking change summary>
81
+ <BLANK LINE>
82
+ <breaking change description + migration instructions>
83
+ <BLANK LINE>
84
+ <BLANK LINE>
85
+ Fixes #<issue number>
86
+ ```
87
+
88
+ or
89
+
90
+ ```text
91
+ DEPRECATED: <what is deprecated>
92
+ <BLANK LINE>
93
+ <deprecation description + recommended update path>
94
+ <BLANK LINE>
95
+ <BLANK LINE>
96
+ Closes #<pr number>
97
+ ```
98
+
99
+ A Breaking Change section should start with the phrase "`BREAKING CHANGE:` " followed by a summary of the breaking change, a blank line, and a detailed description of the breaking change that also includes migration instructions.
100
+
101
+ > 💡 A breaking change can additionally also be marked by adding a “`!`” to the header, right before the “`:`”, e.g. `feat(editor)!: Remove support for dark mode`
102
+ >
103
+ > This makes locating breaking changes easier when just skimming through commit messages.
104
+
105
+ > 💡 The breaking changes must also be added to the [packages/cli/BREAKING-CHANGES.md](https://github.com/n8n-io/n8n/blob/master/packages/cli/BREAKING-CHANGES.md) file located in the n8n repository.
106
+
107
+ Similarly, a Deprecation section should start with "`DEPRECATED:` " followed by a short description of what is deprecated, a blank line, and a detailed description of the deprecation that also mentions the recommended update path.
108
+
109
+ ### Revert commits
110
+
111
+ If the commit reverts a previous commit, it should begin with `revert:` , followed by the header of the reverted commit.
112
+
113
+ The content of the commit message body should contain:
114
+
115
+ - information about the SHA of the commit being reverted in the following format: `This reverts commit <SHA>`,
116
+ - a clear description of the reason for reverting the commit message.
.github/scripts/bump-versions.mjs ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import semver from 'semver';
2
+ import { writeFile, readFile } from 'fs/promises';
3
+ import { resolve } from 'path';
4
+ import child_process from 'child_process';
5
+ import { promisify } from 'util';
6
+ import assert from 'assert';
7
+
8
+ const exec = promisify(child_process.exec);
9
+
10
+ const rootDir = process.cwd();
11
+ const releaseType = process.env.RELEASE_TYPE;
12
+ assert.match(releaseType, /^(patch|minor|major)$/, 'Invalid RELEASE_TYPE');
13
+
14
+ // TODO: if releaseType is `auto` determine release type based on the changelog
15
+
16
+ const lastTag = (await exec('git describe --tags --match "n8n@*" --abbrev=0')).stdout.trim();
17
+ const packages = JSON.parse((await exec('pnpm ls -r --only-projects --json')).stdout);
18
+
19
+ const packageMap = {};
20
+ for (let { name, path, version, private: isPrivate, dependencies } of packages) {
21
+ if (isPrivate && path !== rootDir) continue;
22
+ if (path === rootDir) name = 'monorepo-root';
23
+
24
+ const isDirty = await exec(`git diff --quiet HEAD ${lastTag} -- ${path}`)
25
+ .then(() => false)
26
+ .catch((error) => true);
27
+
28
+ packageMap[name] = { path, isDirty, version };
29
+ }
30
+
31
+ assert.ok(
32
+ Object.values(packageMap).some(({ isDirty }) => isDirty),
33
+ 'No changes found since the last release',
34
+ );
35
+
36
+ // Keep the monorepo version up to date with the released version
37
+ packageMap['monorepo-root'].version = packageMap['n8n'].version;
38
+
39
+ for (const packageName in packageMap) {
40
+ const { path, version, isDirty } = packageMap[packageName];
41
+ const packageFile = resolve(path, 'package.json');
42
+ const packageJson = JSON.parse(await readFile(packageFile, 'utf-8'));
43
+
44
+ packageJson.version = packageMap[packageName].nextVersion =
45
+ isDirty ||
46
+ Object.keys(packageJson.dependencies || {}).some(
47
+ (dependencyName) => packageMap[dependencyName]?.isDirty,
48
+ )
49
+ ? semver.inc(version, releaseType)
50
+ : version;
51
+
52
+ await writeFile(packageFile, JSON.stringify(packageJson, null, 2) + '\n');
53
+ }
54
+
55
+ console.log(packageMap['n8n'].nextVersion);
.github/scripts/ensure-provenance-fields.mjs ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { writeFile, readFile, copyFile } from 'fs/promises';
2
+ import { resolve, dirname } from 'path';
3
+ import child_process from 'child_process';
4
+ import { fileURLToPath } from 'url';
5
+ import { promisify } from 'util';
6
+
7
+ const exec = promisify(child_process.exec);
8
+
9
+ const commonFiles = ['LICENSE.md', 'LICENSE_EE.md'];
10
+
11
+ const baseDir = resolve(dirname(fileURLToPath(import.meta.url)), '../..');
12
+ const packages = JSON.parse((await exec('pnpm ls -r --only-projects --json')).stdout);
13
+
14
+ for (let { name, path, version, private: isPrivate } of packages) {
15
+ if (isPrivate) continue;
16
+
17
+ const packageFile = resolve(path, 'package.json');
18
+ const packageJson = {
19
+ ...JSON.parse(await readFile(packageFile, 'utf-8')),
20
+ // Add these fields to all published package.json files to ensure provenance checks pass
21
+ license: 'SEE LICENSE IN LICENSE.md',
22
+ homepage: 'https://n8n.io',
23
+ author: {
24
+ name: 'Jan Oberhauser',
25
+ email: 'jan@n8n.io',
26
+ },
27
+ repository: {
28
+ type: 'git',
29
+ url: 'git+https://github.com/n8n-io/n8n.git',
30
+ },
31
+ };
32
+
33
+ // Copy over LICENSE.md and LICENSE_EE.md into every published package, and ensure they get included in the published package
34
+ await Promise.all(
35
+ commonFiles.map(async (file) => {
36
+ await copyFile(resolve(baseDir, file), resolve(path, file));
37
+ if (packageJson.files && !packageJson.files.includes(file)) {
38
+ packageJson.files.push(file);
39
+ }
40
+ }),
41
+ );
42
+
43
+ await writeFile(packageFile, JSON.stringify(packageJson, null, 2) + '\n');
44
+ }
.github/scripts/package.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dependencies": {
3
+ "cacheable-lookup": "6.1.0",
4
+ "conventional-changelog": "^4.0.0",
5
+ "debug": "4.3.4",
6
+ "glob": "10.3.10",
7
+ "p-limit": "3.1.0",
8
+ "picocolors": "1.0.1",
9
+ "semver": "7.5.4",
10
+ "tempfile": "5.0.0"
11
+ }
12
+ }
.github/scripts/trim-fe-packageJson.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const { writeFileSync } = require('fs');
2
+ const { resolve } = require('path');
3
+ const baseDir = resolve(__dirname, '../..');
4
+
5
+ const trimPackageJson = (packageName) => {
6
+ const filePath = resolve(baseDir, 'packages', packageName, 'package.json');
7
+ const { scripts, peerDependencies, devDependencies, dependencies, ...packageJson } = require(
8
+ filePath,
9
+ );
10
+ if (packageName === 'frontend/@n8n/chat') {
11
+ packageJson.dependencies = dependencies;
12
+ }
13
+ writeFileSync(filePath, JSON.stringify(packageJson, null, 2) + '\n', 'utf-8');
14
+ };
15
+
16
+ trimPackageJson('frontend/@n8n/chat');
17
+ trimPackageJson('frontend/@n8n/design-system');
18
+ trimPackageJson('frontend/editor-ui');
.github/scripts/update-changelog.mjs ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import createTempFile from 'tempfile';
2
+ import conventionalChangelog from 'conventional-changelog';
3
+ import { resolve } from 'path';
4
+ import { createReadStream, createWriteStream } from 'fs';
5
+ import { dirname } from 'path';
6
+ import { fileURLToPath } from 'url';
7
+ import { pipeline } from 'stream/promises';
8
+ import packageJson from '../../package.json' assert { type: 'json' };
9
+
10
+ const baseDir = resolve(dirname(fileURLToPath(import.meta.url)), '../..');
11
+ const fullChangelogFile = resolve(baseDir, 'CHANGELOG.md');
12
+ const versionChangelogFile = resolve(baseDir, `CHANGELOG-${packageJson.version}.md`);
13
+
14
+ const changelogStream = conventionalChangelog({
15
+ preset: 'angular',
16
+ releaseCount: 1,
17
+ tagPrefix: 'n8n@',
18
+ transform: (commit, callback) => {
19
+ const hasNoChangelogInHeader = commit.header.includes('(no-changelog)');
20
+ const isBenchmarkScope = commit.scope === 'benchmark';
21
+
22
+ // Ignore commits that have 'benchmark' scope or '(no-changelog)' in the header
23
+ callback(null, hasNoChangelogInHeader || isBenchmarkScope ? undefined : commit);
24
+ },
25
+ }).on('error', (err) => {
26
+ console.error(err.stack);
27
+ process.exit(1);
28
+ });
29
+
30
+ // Write the new changelog to a new temporary file, so that the contents can be used in the PR description
31
+ await pipeline(changelogStream, createWriteStream(versionChangelogFile));
32
+
33
+ // Since we can't read and write from the same file at the same time,
34
+ // we use a temporary file to output the updated changelog to.
35
+ const tmpFile = createTempFile();
36
+ const tmpStream = createWriteStream(tmpFile);
37
+ await pipeline(createReadStream(versionChangelogFile), tmpStream, { end: false });
38
+ await pipeline(createReadStream(fullChangelogFile), tmpStream);
39
+ await pipeline(createReadStream(tmpFile), createWriteStream(fullChangelogFile));
.github/scripts/validate-docs-links.js ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env node
2
+
3
+ const packages = ['nodes-base', '@n8n/nodes-langchain'];
4
+ const concurrency = 20;
5
+ let exitCode = 0;
6
+
7
+ const debug = require('debug')('n8n');
8
+ const path = require('path');
9
+ const https = require('https');
10
+ const glob = require('glob');
11
+ const pLimit = require('p-limit');
12
+ const picocolors = require('picocolors');
13
+ const Lookup = require('cacheable-lookup').default;
14
+
15
+ const agent = new https.Agent({ keepAlive: true, keepAliveMsecs: 5000 });
16
+ new Lookup().install(agent);
17
+ const limiter = pLimit(concurrency);
18
+
19
+ const validateUrl = async (packageName, kind, type) =>
20
+ new Promise((resolve, reject) => {
21
+ const name = type.displayName;
22
+ const documentationUrl =
23
+ kind === 'credentials'
24
+ ? type.documentationUrl
25
+ : type.codex?.resources?.primaryDocumentation?.[0]?.url;
26
+ if (!documentationUrl) resolve([name, null]);
27
+
28
+ const url = new URL(
29
+ /^https?:\/\//.test(documentationUrl)
30
+ ? documentationUrl
31
+ : `https://docs.n8n.io/integrations/builtin/${kind}/${documentationUrl.toLowerCase()}/`,
32
+ );
33
+ https
34
+ .request(
35
+ {
36
+ hostname: url.hostname,
37
+ port: 443,
38
+ path: url.pathname,
39
+ method: 'HEAD',
40
+ agent,
41
+ },
42
+ (res) => {
43
+ debug(picocolors.green('✓'), packageName, kind, name);
44
+ resolve([name, res.statusCode]);
45
+ },
46
+ )
47
+ .on('error', (e) => {
48
+ debug(picocolors.red('✘'), packageName, kind, name);
49
+ reject(e);
50
+ })
51
+ .end();
52
+ });
53
+
54
+ const checkLinks = async (packageName, kind) => {
55
+ const baseDir = path.resolve(__dirname, '../../packages', packageName);
56
+ let types = require(path.join(baseDir, `dist/types/${kind}.json`));
57
+ if (kind === 'nodes')
58
+ types = types.filter(
59
+ ({ codex, hidden }) => !!codex?.resources?.primaryDocumentation && !hidden,
60
+ );
61
+ debug(packageName, kind, types.length);
62
+
63
+ const statuses = await Promise.all(
64
+ types.map((type) =>
65
+ limiter(() => {
66
+ return validateUrl(packageName, kind, type);
67
+ }),
68
+ ),
69
+ );
70
+
71
+ const missingDocs = [];
72
+ const invalidUrls = [];
73
+ for (const [name, statusCode] of statuses) {
74
+ if (statusCode === null) missingDocs.push(name);
75
+ if (statusCode !== 200) invalidUrls.push(name);
76
+ }
77
+
78
+ if (missingDocs.length)
79
+ console.log('Documentation URL missing in %s for %s', packageName, kind, missingDocs);
80
+ if (invalidUrls.length)
81
+ console.log('Documentation URL invalid in %s for %s', packageName, kind, invalidUrls);
82
+ if (missingDocs.length || invalidUrls.length) exitCode = 1;
83
+ };
84
+
85
+ (async () => {
86
+ for (const packageName of packages) {
87
+ await Promise.all([checkLinks(packageName, 'credentials'), checkLinks(packageName, 'nodes')]);
88
+ if (exitCode !== 0) process.exit(exitCode);
89
+ }
90
+ })();
.github/workflows/benchmark-destroy-nightly.yml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Destroy Benchmark Env
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 5 * * *'
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ id-token: write
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: benchmark
14
+ cancel-in-progress: false
15
+
16
+ jobs:
17
+ build:
18
+ runs-on: ubuntu-latest
19
+ environment: benchmarking
20
+
21
+ steps:
22
+ - name: Checkout
23
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
24
+
25
+ - name: Azure login
26
+ uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
27
+ with:
28
+ client-id: ${{ secrets.BENCHMARK_ARM_CLIENT_ID }}
29
+ tenant-id: ${{ secrets.BENCHMARK_ARM_TENANT_ID }}
30
+ subscription-id: ${{ secrets.BENCHMARK_ARM_SUBSCRIPTION_ID }}
31
+
32
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
33
+ with:
34
+ node-version: 20.x
35
+
36
+ - name: Setup corepack and pnpm
37
+ run: |
38
+ npm i -g corepack@0.31
39
+ corepack enable
40
+
41
+ - name: Install dependencies
42
+ run: pnpm install --frozen-lockfile
43
+
44
+ - name: Destroy cloud env
45
+ run: pnpm destroy-cloud-env
46
+ working-directory: packages/@n8n/benchmark
.github/workflows/benchmark-nightly.yml ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Run Nightly Benchmark
2
+ run-name: Benchmark ${{ inputs.n8n_tag || 'nightly' }}
3
+
4
+ on:
5
+ schedule:
6
+ - cron: '30 1,2,3 * * *'
7
+ workflow_dispatch:
8
+ inputs:
9
+ debug:
10
+ description: 'Use debug logging'
11
+ required: true
12
+ default: 'false'
13
+ n8n_tag:
14
+ description: 'Name of the n8n docker tag to run the benchmark against.'
15
+ required: true
16
+ default: 'nightly'
17
+ benchmark_tag:
18
+ description: 'Name of the benchmark cli docker tag to run the benchmark with.'
19
+ required: true
20
+ default: 'latest'
21
+
22
+ env:
23
+ ARM_CLIENT_ID: ${{ secrets.BENCHMARK_ARM_CLIENT_ID }}
24
+ ARM_SUBSCRIPTION_ID: ${{ secrets.BENCHMARK_ARM_SUBSCRIPTION_ID }}
25
+ ARM_TENANT_ID: ${{ secrets.BENCHMARK_ARM_TENANT_ID }}
26
+ N8N_TAG: ${{ inputs.n8n_tag || 'nightly' }}
27
+ N8N_BENCHMARK_TAG: ${{ inputs.benchmark_tag || 'latest' }}
28
+ DEBUG: ${{ inputs.debug == 'true' && '--debug' || '' }}
29
+
30
+ permissions:
31
+ id-token: write
32
+ contents: read
33
+
34
+ concurrency:
35
+ group: benchmark
36
+ cancel-in-progress: false
37
+
38
+ jobs:
39
+ build:
40
+ runs-on: ubuntu-latest
41
+ environment: benchmarking
42
+
43
+ steps:
44
+ - name: Checkout
45
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
46
+
47
+ - uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3
48
+ with:
49
+ terraform_version: '1.8.5'
50
+
51
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
52
+ with:
53
+ node-version: 20.x
54
+
55
+ - name: Setup corepack and pnpm
56
+ run: |
57
+ npm i -g corepack@0.31
58
+ corepack enable
59
+
60
+ - name: Install dependencies
61
+ run: pnpm install --frozen-lockfile
62
+
63
+ - name: Azure login
64
+ uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
65
+ with:
66
+ client-id: ${{ env.ARM_CLIENT_ID }}
67
+ tenant-id: ${{ env.ARM_TENANT_ID }}
68
+ subscription-id: ${{ env.ARM_SUBSCRIPTION_ID }}
69
+
70
+ - name: Destroy any existing environment
71
+ run: pnpm destroy-cloud-env
72
+ working-directory: packages/@n8n/benchmark
73
+
74
+ - name: Provision the environment
75
+ run: pnpm provision-cloud-env ${{ env.DEBUG }}
76
+ working-directory: packages/@n8n/benchmark
77
+
78
+ - name: Run the benchmark
79
+ env:
80
+ BENCHMARK_RESULT_WEBHOOK_URL: ${{ secrets.BENCHMARK_RESULT_WEBHOOK_URL }}
81
+ BENCHMARK_RESULT_WEBHOOK_AUTH_HEADER: ${{ secrets.BENCHMARK_RESULT_WEBHOOK_AUTH_HEADER }}
82
+ N8N_LICENSE_CERT: ${{ secrets.N8N_BENCHMARK_LICENSE_CERT }}
83
+ run: |
84
+ pnpm benchmark-in-cloud \
85
+ --vus 5 \
86
+ --duration 1m \
87
+ --n8nTag ${{ env.N8N_TAG }} \
88
+ --benchmarkTag ${{ env.N8N_BENCHMARK_TAG }} \
89
+ ${{ env.DEBUG }}
90
+ working-directory: packages/@n8n/benchmark
91
+
92
+ # We need to login again because the access token expires
93
+ - name: Azure login
94
+ if: always()
95
+ uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
96
+ with:
97
+ client-id: ${{ env.ARM_CLIENT_ID }}
98
+ tenant-id: ${{ env.ARM_TENANT_ID }}
99
+ subscription-id: ${{ env.ARM_SUBSCRIPTION_ID }}
100
+
101
+ - name: Destroy the environment
102
+ if: always()
103
+ run: pnpm destroy-cloud-env ${{ env.DEBUG }}
104
+ working-directory: packages/@n8n/benchmark
.github/workflows/check-documentation-urls.yml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Check Documentation URLs
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ schedule:
7
+ - cron: '0 0 * * *'
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ check-docs-urls:
12
+ runs-on: ubuntu-latest
13
+
14
+ timeout-minutes: 5
15
+
16
+ steps:
17
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18
+
19
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
20
+ with:
21
+ node-version: 20.x
22
+
23
+ - name: Setup corepack and pnpm
24
+ run: |
25
+ npm i -g corepack@0.31
26
+ corepack enable
27
+
28
+ - name: Install dependencies
29
+ run: pnpm install --frozen-lockfile
30
+
31
+ - name: Build relevant packages
32
+ run: pnpm build:nodes
33
+
34
+ - run: npm install --prefix=.github/scripts --no-package-lock
35
+
36
+ - name: Test URLs
37
+ run: node .github/scripts/validate-docs-links.js
38
+
39
+ - name: Notify Slack on failure
40
+ uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0.0
41
+ if: failure()
42
+ with:
43
+ status: ${{ job.status }}
44
+ channel: '#alerts-build'
45
+ webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
46
+ message: |
47
+ <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}| Documentation URLs check failed >
.github/workflows/check-pr-title.yml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Check PR title
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - edited
8
+ - synchronize
9
+ branches:
10
+ - 'master'
11
+
12
+ jobs:
13
+ check-pr-title:
14
+ runs-on: ubuntu-latest
15
+ timeout-minutes: 5
16
+ steps:
17
+ - name: Check out branch
18
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
19
+
20
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
21
+ with:
22
+ node-version: 20.x
23
+
24
+ - name: Setup corepack and pnpm
25
+ run: |
26
+ npm i -g corepack@0.31
27
+ corepack enable
28
+
29
+ - name: Install dependencies
30
+ run: pnpm install --frozen-lockfile
31
+
32
+ - name: Validate PR title
33
+ id: validate_pr_title
34
+ uses: n8n-io/validate-n8n-pull-request-title@c97ff722ac14ee0bda73766473bba764445db805 # v2.2.0
35
+ env:
36
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/check-run-eligibility.yml ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Determines if conditions are met for running subsequent jobs on a Pull Request.
2
+ #
3
+ # !! IMPORTANT !!
4
+ # This workflow RELIES on being called from a parent workflow triggered by
5
+ # a `pull_request` or `pull_request_target` event. It uses `github.event`
6
+ # to access PR details.
7
+ #
8
+ # It checks if all the following conditions are TRUE:
9
+ # 1. The PR is NOT from a fork (i.e., it's an internal PR).
10
+ # 2. The PR has been approved by a maintainer (`is_pr_approved_by_maintainer`).
11
+ # 3. The PR's source branch does NOT match an excluded pattern.
12
+ # 4. The PR includes relevant file changes (`paths_filter_patterns`).
13
+ #
14
+ # It outputs `should_run` as 'true' if ALL conditions pass, 'false' otherwise.
15
+
16
+ name: PR Eligibility Check
17
+
18
+ on:
19
+ workflow_call:
20
+ inputs:
21
+ is_pr_approved_by_maintainer:
22
+ required: true
23
+ type: boolean
24
+ paths_filter_patterns:
25
+ description: "Path filter patterns for 'paths-filter-action'."
26
+ required: false
27
+ type: string
28
+ default: |
29
+ not_ignored:
30
+ - '!.devcontainer/**'
31
+ - '!.github/*'
32
+ - '!.github/scripts/*'
33
+ - '!.github/workflows/benchmark-*'
34
+ - '!.github/workflows/check-*'
35
+ - '!.vscode/**'
36
+ - '!docker/**'
37
+ - '!packages/@n8n/benchmark/**'
38
+ - '!**/*.md'
39
+ excluded_source_branch_patterns:
40
+ description: "Newline-separated list of glob patterns for source branches to EXCLUDE."
41
+ required: false
42
+ type: string
43
+ default: |
44
+ release/*
45
+ master
46
+
47
+ outputs:
48
+ should_run:
49
+ description: "Outputs 'true' if all eligibility checks pass, otherwise 'false'."
50
+ value: ${{ jobs.evaluate_conditions.outputs.run_decision }}
51
+
52
+ jobs:
53
+ evaluate_conditions:
54
+ runs-on: ubuntu-latest
55
+ outputs:
56
+ run_decision: ${{ steps.evaluate.outputs.should_run }}
57
+ steps:
58
+ - name: Check out current commit
59
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
60
+ with:
61
+ ref: ${{ github.event.pull_request.head.sha }}
62
+
63
+ - name: Determine changed files
64
+ uses: tomi/paths-filter-action@32c62f5ca100c1110406e3477d5b3ecef4666fec # v3.0.2
65
+ id: changed
66
+ with:
67
+ filters: ${{ inputs.paths_filter_patterns }}
68
+ predicate-quantifier: 'every'
69
+
70
+ - name: Evaluate Conditions & Set Output
71
+ id: evaluate
72
+ env:
73
+ IS_FORK: ${{ github.event.pull_request.head.repo.fork }}
74
+ IS_APPROVED: ${{ inputs.is_pr_approved_by_maintainer }}
75
+ FILES_CHANGED: ${{ steps.changed.outputs.not_ignored == 'true' }}
76
+ HEAD_REF: ${{ github.event.pull_request.head.ref }}
77
+ EXCLUDED_PATTERNS: ${{ inputs.excluded_source_branch_patterns }}
78
+ run: |
79
+ if [[ "$IS_FORK" == "true" ]]; then
80
+ is_community="true"
81
+ else
82
+ is_community="false"
83
+ fi
84
+
85
+ source_branch_excluded="false"
86
+ while IFS= read -r pattern; do
87
+ if [[ -n "$pattern" && "$HEAD_REF" == $pattern ]]; then
88
+ source_branch_excluded="true"
89
+ break
90
+ fi
91
+ done <<< "$EXCLUDED_PATTERNS"
92
+
93
+ echo "--- Checking Conditions ---"
94
+ echo "Is NOT Community PR: $([[ "$is_community" == "false" ]] && echo true || echo false)"
95
+ echo "Files Changed: $FILES_CHANGED"
96
+ echo "Source Branch Excluded: $source_branch_excluded"
97
+ echo "Is Approved: $IS_APPROVED"
98
+ echo "-------------------------"
99
+
100
+ if [[ "$is_community" == "false" && \
101
+ "$FILES_CHANGED" == "true" && \
102
+ "$source_branch_excluded" == "false" && \
103
+ "$IS_APPROVED" == "true" ]]; then
104
+ echo "Decision: Conditions met. Setting should_run=true."
105
+ echo "should_run=true" >> $GITHUB_OUTPUT
106
+ else
107
+ echo "Decision: Conditions not met. Setting should_run=false."
108
+ echo "should_run=false" >> $GITHUB_OUTPUT
109
+ fi
.github/workflows/chromatic.yml ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Chromatic
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 0 * * *'
6
+ workflow_dispatch:
7
+ pull_request_review:
8
+ types: [submitted]
9
+
10
+ concurrency:
11
+ group: chromatic-${{ github.event.pull_request.number || github.ref }}-${{github.event.review.state}}
12
+ cancel-in-progress: true
13
+
14
+ jobs:
15
+ get-metadata:
16
+ name: Get Metadata
17
+ runs-on: ubuntu-latest
18
+ if: github.event.review.state == 'approved'
19
+ steps:
20
+ - name: Check out current commit
21
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
22
+ with:
23
+ ref: ${{ github.event.pull_request.head.sha }}
24
+ fetch-depth: 2
25
+
26
+ - name: Determine changed files
27
+ uses: tomi/paths-filter-action@32c62f5ca100c1110406e3477d5b3ecef4666fec # v3.0.2
28
+ id: changed
29
+ if: github.event_name == 'pull_request_review'
30
+ with:
31
+ filters: |
32
+ design_system:
33
+ - packages/design-system/**
34
+ - .github/workflows/chromatic.yml
35
+
36
+ outputs:
37
+ design_system_files_changed: ${{ steps.changed.outputs.design_system == 'true' }}
38
+ is_community_pr: ${{ contains(github.event.pull_request.labels.*.name, 'community') }}
39
+ is_pr_target_master: ${{ github.event.pull_request.base.ref == 'master' }}
40
+ is_dispatch: ${{ github.event_name == 'workflow_dispatch' }}
41
+ is_pr_approved: ${{ github.event.review.state == 'approved' }}
42
+
43
+ chromatic:
44
+ needs: [get-metadata]
45
+ if: |
46
+ needs.get-metadata.outputs.is_dispatch == 'true' ||
47
+ (
48
+ needs.get-metadata.outputs.design_system_files_changed == 'true' &&
49
+ needs.get-metadata.outputs.is_community_pr == 'false' &&
50
+ needs.get-metadata.outputs.is_pr_target_master == 'true' &&
51
+ needs.get-metadata.outputs.is_pr_approved == 'true'
52
+ )
53
+ runs-on: ubuntu-latest
54
+ steps:
55
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
56
+ with:
57
+ fetch-depth: 0
58
+
59
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
60
+ with:
61
+ node-version: 20.x
62
+
63
+ - name: Setup corepack and pnpm
64
+ run: |
65
+ npm i -g corepack@0.31
66
+ corepack enable
67
+
68
+ - run: pnpm install --frozen-lockfile
69
+
70
+ - name: Publish to Chromatic
71
+ uses: chromaui/action@c93e0bc3a63aa176e14a75b61a31847cbfdd341c # v11
72
+ id: chromatic_tests
73
+ continue-on-error: true
74
+ with:
75
+ workingDir: packages/design-system
76
+ onlyChanged: true
77
+ projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
78
+ exitZeroOnChanges: false
79
+
80
+ - name: Success comment
81
+ if: steps.chromatic_tests.outcome == 'success' && github.ref != 'refs/heads/master'
82
+ uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
83
+ with:
84
+ issue-number: ${{ github.event.pull_request.number }}
85
+ token: ${{ secrets.GITHUB_TOKEN }}
86
+ edit-mode: replace
87
+ body: |
88
+ :white_check_mark: No visual regressions found.
89
+
90
+ - name: Fail comment
91
+ if: steps.chromatic_tests.outcome != 'success' && github.ref != 'refs/heads/master'
92
+ uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
93
+ with:
94
+ issue-number: ${{ github.event.pull_request.number }}
95
+ token: ${{ secrets.GITHUB_TOKEN }}
96
+ edit-mode: replace
97
+ body: |
98
+ [:warning: Visual regressions found](${{steps.chromatic_tests.outputs.url}}): ${{steps.chromatic_tests.outputs.changeCount}}
.github/workflows/ci-master.yml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Test Master
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ jobs:
9
+ install-and-build:
10
+ runs-on: blacksmith-2vcpu-ubuntu-2204
11
+ env:
12
+ NODE_OPTIONS: '--max-old-space-size=4096'
13
+
14
+ timeout-minutes: 10
15
+
16
+ steps:
17
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18
+
19
+ - uses: useblacksmith/setup-node@65c6ca86fdeb0ab3d85e78f57e4f6a7e4780b391 # v5
20
+ with:
21
+ node-version: 20.x
22
+
23
+ - name: Setup corepack and pnpm
24
+ run: |
25
+ npm i -g corepack@0.31
26
+ corepack enable
27
+
28
+ - name: Install dependencies
29
+ run: pnpm install --frozen-lockfile
30
+
31
+ - name: Setup build cache
32
+ uses: useblacksmith/caching-for-turbo@bafb57e7ebdbf1185762286ec94d24648cd3938a # v1
33
+
34
+ - name: Build
35
+ run: pnpm build
36
+
37
+ - name: Cache build artifacts
38
+ uses: useblacksmith/cache/save@c5fe29eb0efdf1cf4186b9f7fcbbcbc0cf025662 # v5
39
+ with:
40
+ path: ./packages/**/dist
41
+ key: ${{ github.sha }}-base:build
42
+
43
+ unit-test:
44
+ name: Unit tests
45
+ uses: ./.github/workflows/units-tests-reusable.yml
46
+ needs: install-and-build
47
+ strategy:
48
+ matrix:
49
+ node-version: [18.x, 20.x, 22.4]
50
+ with:
51
+ ref: ${{ inputs.branch }}
52
+ nodeVersion: ${{ matrix.node-version }}
53
+ cacheKey: ${{ github.sha }}-base:build
54
+ collectCoverage: ${{ matrix.node-version == '20.x' }}
55
+ ignoreTurboCache: ${{ matrix.node-version == '20.x' }}
56
+ skipFrontendTests: ${{ matrix.node-version != '20.x' }}
57
+ secrets:
58
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
59
+
60
+ lint:
61
+ name: Lint
62
+ uses: ./.github/workflows/linting-reusable.yml
63
+ needs: install-and-build
64
+ with:
65
+ ref: ${{ inputs.branch }}
66
+ cacheKey: ${{ github.sha }}-base:build
67
+
68
+ notify-on-failure:
69
+ name: Notify Slack on failure
70
+ runs-on: ubuntu-latest
71
+ needs: [unit-test, lint]
72
+ steps:
73
+ - name: Notify Slack on failure
74
+ uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0.0
75
+ if: failure()
76
+ with:
77
+ status: ${{ job.status }}
78
+ channel: '#alerts-build'
79
+ webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
80
+ message: Master branch (build or test or lint) failed (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
.github/workflows/ci-postgres-mysql.yml ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Test Postgres and MySQL schemas
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 0 * * *'
6
+ workflow_dispatch:
7
+ pull_request:
8
+ paths:
9
+ - packages/cli/src/databases/**
10
+ - packages/@n8n/db/**
11
+ - packages/cli/src/modules/*/database/**
12
+ - packages/cli/test/integration/**
13
+ - packages/cli/test/shared/db/**
14
+ - packages/@n8n/db/**
15
+ - .github/workflows/ci-postgres-mysql.yml
16
+ - .github/docker-compose.yml
17
+ pull_request_review:
18
+ types: [submitted]
19
+
20
+ concurrency:
21
+ group: db-${{ github.event.pull_request.number || github.ref }}
22
+ cancel-in-progress: true
23
+
24
+ jobs:
25
+ build:
26
+ name: Install & Build
27
+ runs-on: ubuntu-latest
28
+ if: github.event_name != 'pull_request_review' || startsWith(github.event.pull_request.base.ref, 'release/')
29
+ steps:
30
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31
+
32
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
33
+ with:
34
+ node-version: 20.x
35
+
36
+ - name: Setup corepack and pnpm
37
+ run: |
38
+ npm i -g corepack@0.31
39
+ corepack enable
40
+
41
+ - run: pnpm install --frozen-lockfile
42
+
43
+ - name: Setup build cache
44
+ uses: rharkor/caching-for-turbo@439abec0d28d21b192fa8817b744ffdf1ee5ac0d # v1.5
45
+
46
+ - name: Build Backend
47
+ run: pnpm build
48
+
49
+ - name: Cache build artifacts
50
+ uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
51
+ with:
52
+ path: ./packages/**/dist
53
+ key: ${{ github.sha }}:db-tests
54
+
55
+ sqlite-pooled:
56
+ name: SQLite Pooled
57
+ runs-on: ubuntu-latest
58
+ needs: build
59
+ timeout-minutes: 20
60
+ env:
61
+ DB_TYPE: sqlite
62
+ DB_SQLITE_POOL_SIZE: 4
63
+ steps:
64
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
65
+
66
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
67
+ with:
68
+ node-version: 20.x
69
+
70
+ - name: Setup corepack and pnpm
71
+ run: |
72
+ npm i -g corepack@0.31
73
+ corepack enable
74
+
75
+ - run: pnpm install --frozen-lockfile
76
+
77
+ - name: Setup build cache
78
+ uses: rharkor/caching-for-turbo@439abec0d28d21b192fa8817b744ffdf1ee5ac0d # v1.5
79
+
80
+ - name: Restore cached build artifacts
81
+ uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
82
+ with:
83
+ path: ./packages/**/dist
84
+ key: ${{ github.sha }}:db-tests
85
+
86
+ - name: Test SQLite Pooled
87
+ working-directory: packages/cli
88
+ run: pnpm jest
89
+
90
+ mariadb:
91
+ name: MariaDB
92
+ runs-on: ubuntu-latest
93
+ needs: build
94
+ timeout-minutes: 20
95
+ env:
96
+ DB_MYSQLDB_PASSWORD: password
97
+ steps:
98
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
99
+
100
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
101
+ with:
102
+ node-version: 20.x
103
+
104
+ - name: Setup corepack and pnpm
105
+ run: |
106
+ npm i -g corepack@0.31
107
+ corepack enable
108
+
109
+ - run: pnpm install --frozen-lockfile
110
+
111
+ - name: Setup build cache
112
+ uses: rharkor/caching-for-turbo@439abec0d28d21b192fa8817b744ffdf1ee5ac0d # v1.5
113
+
114
+ - name: Restore cached build artifacts
115
+ uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
116
+ with:
117
+ path: ./packages/**/dist
118
+ key: ${{ github.sha }}:db-tests
119
+
120
+ - name: Start MariaDB
121
+ uses: isbang/compose-action@802a148945af6399a338c7906c267331b39a71af # v2.0.0
122
+ with:
123
+ compose-file: ./.github/docker-compose.yml
124
+ services: |
125
+ mariadb
126
+
127
+ - name: Test MariaDB
128
+ working-directory: packages/cli
129
+ run: pnpm test:mariadb --testTimeout 60000
130
+
131
+ mysql:
132
+ name: MySQL (${{ matrix.service-name }})
133
+ runs-on: ubuntu-latest
134
+ needs: build
135
+ timeout-minutes: 20
136
+ strategy:
137
+ matrix:
138
+ service-name: ['mysql-8.0.13', 'mysql-8.4']
139
+ env:
140
+ DB_MYSQLDB_PASSWORD: password
141
+ steps:
142
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
143
+
144
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
145
+ with:
146
+ node-version: 20.x
147
+
148
+ - name: Setup corepack and pnpm
149
+ run: |
150
+ npm i -g corepack@0.31
151
+ corepack enable
152
+
153
+ - run: pnpm install --frozen-lockfile
154
+
155
+ - name: Setup build cache
156
+ uses: rharkor/caching-for-turbo@439abec0d28d21b192fa8817b744ffdf1ee5ac0d # v1.5
157
+
158
+ - name: Restore cached build artifacts
159
+ uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
160
+ with:
161
+ path: ./packages/**/dist
162
+ key: ${{ github.sha }}:db-tests
163
+
164
+ - name: Start MySQL
165
+ uses: isbang/compose-action@802a148945af6399a338c7906c267331b39a71af # v2.0.0
166
+ with:
167
+ compose-file: ./.github/docker-compose.yml
168
+ services: |
169
+ ${{ matrix.service-name }}
170
+
171
+ - name: Test MySQL
172
+ working-directory: packages/cli
173
+ run: pnpm test:mysql --testTimeout 60000
174
+
175
+ postgres:
176
+ name: Postgres
177
+ runs-on: ubuntu-latest
178
+ needs: build
179
+ timeout-minutes: 20
180
+ env:
181
+ DB_POSTGRESDB_PASSWORD: password
182
+ DB_POSTGRESDB_POOL_SIZE: 1 # Detect connection pooling deadlocks
183
+ steps:
184
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
185
+
186
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
187
+ with:
188
+ node-version: 20.x
189
+
190
+ - name: Setup corepack and pnpm
191
+ run: |
192
+ npm i -g corepack@0.31
193
+ corepack enable
194
+
195
+ - run: pnpm install --frozen-lockfile
196
+
197
+ - name: Setup build cache
198
+ uses: rharkor/caching-for-turbo@439abec0d28d21b192fa8817b744ffdf1ee5ac0d # v1.5
199
+
200
+ - name: Restore cached build artifacts
201
+ uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
202
+ with:
203
+ path: ./packages/**/dist
204
+ key: ${{ github.sha }}:db-tests
205
+
206
+ - name: Start Postgres
207
+ uses: isbang/compose-action@802a148945af6399a338c7906c267331b39a71af # v2.0.0
208
+ with:
209
+ compose-file: ./.github/docker-compose.yml
210
+ services: |
211
+ postgres
212
+
213
+ - name: Test Postgres
214
+ working-directory: packages/cli
215
+ run: pnpm test:postgres
216
+
217
+ notify-on-failure:
218
+ name: Notify Slack on failure
219
+ runs-on: ubuntu-latest
220
+ needs: [mariadb, postgres, mysql]
221
+ steps:
222
+ - name: Notify Slack on failure
223
+ uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0.0
224
+ if: failure() && github.ref == 'refs/heads/master'
225
+ with:
226
+ status: ${{ job.status }}
227
+ channel: '#alerts-build'
228
+ webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
229
+ message: Postgres, MariaDB or MySQL tests failed (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
.github/workflows/ci-pull-requests.yml ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Build, unit test and lint branch
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - '**'
7
+ - '!release/*'
8
+
9
+ jobs:
10
+ install-and-build:
11
+ name: Install & Build
12
+ runs-on: blacksmith-2vcpu-ubuntu-2204
13
+ env:
14
+ NODE_OPTIONS: '--max-old-space-size=4096'
15
+ steps:
16
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
17
+ with:
18
+ ref: refs/pull/${{ github.event.pull_request.number }}/merge
19
+
20
+ - uses: useblacksmith/setup-node@65c6ca86fdeb0ab3d85e78f57e4f6a7e4780b391 # v5
21
+ with:
22
+ node-version: 20.x
23
+
24
+ - name: Setup corepack and pnpm
25
+ run: |
26
+ npm i -g corepack@0.31
27
+ corepack enable
28
+
29
+ - name: Install dependencies
30
+ run: pnpm install --frozen-lockfile
31
+
32
+ - name: Setup build cache
33
+ uses: useblacksmith/caching-for-turbo@bafb57e7ebdbf1185762286ec94d24648cd3938a # v1
34
+
35
+ - name: Build
36
+ run: pnpm build
37
+
38
+ - name: Run formatcheck
39
+ run: pnpm format:check
40
+
41
+ - name: Run typecheck
42
+ run: pnpm typecheck
43
+
44
+ - name: Cache build artifacts
45
+ uses: useblacksmith/cache/save@c5fe29eb0efdf1cf4186b9f7fcbbcbc0cf025662 # v5
46
+ with:
47
+ path: ./packages/**/dist
48
+ key: ${{ github.sha }}-base:build
49
+
50
+ unit-test:
51
+ name: Unit tests
52
+ uses: ./.github/workflows/units-tests-reusable.yml
53
+ needs: install-and-build
54
+ with:
55
+ ref: refs/pull/${{ github.event.pull_request.number }}/merge
56
+ cacheKey: ${{ github.sha }}-base:build
57
+ collectCoverage: true
58
+ secrets:
59
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
60
+
61
+ lint:
62
+ name: Lint
63
+ uses: ./.github/workflows/linting-reusable.yml
64
+ needs: install-and-build
65
+ with:
66
+ ref: refs/pull/${{ github.event.pull_request.number }}/merge
67
+ cacheKey: ${{ github.sha }}-base:build
.github/workflows/docker-base-image.yml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Docker Base Image CI
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ node_version:
7
+ description: 'Node.js version to build this image with.'
8
+ type: choice
9
+ required: true
10
+ default: '20'
11
+ options:
12
+ - '18'
13
+ - '20'
14
+ - '22'
15
+
16
+ jobs:
17
+ build:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
21
+
22
+ - name: Set up QEMU
23
+ uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
24
+
25
+ - name: Set up Docker Buildx
26
+ uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
27
+
28
+ - name: Login to GitHub Container Registry
29
+ uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
30
+ with:
31
+ registry: ghcr.io
32
+ username: ${{ github.actor }}
33
+ password: ${{ secrets.GITHUB_TOKEN }}
34
+
35
+ - name: Login to DockerHub
36
+ uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
37
+ with:
38
+ username: ${{ secrets.DOCKER_USERNAME }}
39
+ password: ${{ secrets.DOCKER_PASSWORD }}
40
+
41
+ - name: Build
42
+ uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
43
+ env:
44
+ DOCKER_BUILD_SUMMARY: false
45
+ with:
46
+ context: .
47
+ file: ./docker/images/n8n-base/Dockerfile
48
+ build-args: |
49
+ NODE_VERSION=${{github.event.inputs.node_version}}
50
+ platforms: linux/amd64,linux/arm64
51
+ provenance: false
52
+ push: true
53
+ tags: |
54
+ ${{ secrets.DOCKER_USERNAME }}/base:${{ github.event.inputs.node_version }}
55
+ ghcr.io/${{ github.repository_owner }}/base:${{ github.event.inputs.node_version }}
.github/workflows/docker-images-benchmark.yml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Benchmark Docker Image CI
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches:
7
+ - master
8
+ paths:
9
+ - 'packages/@n8n/benchmark/**'
10
+ - 'pnpm-lock.yaml'
11
+ - 'pnpm-workspace.yaml'
12
+ - '.github/workflows/docker-images-benchmark.yml'
13
+
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+
18
+ steps:
19
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
20
+
21
+ - name: Set up QEMU
22
+ uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
23
+
24
+ - name: Set up Docker Buildx
25
+ uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
26
+
27
+ - name: Login to GitHub Container Registry
28
+ uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
29
+ with:
30
+ registry: ghcr.io
31
+ username: ${{ github.actor }}
32
+ password: ${{ secrets.GITHUB_TOKEN }}
33
+
34
+ - name: Build
35
+ uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
36
+ env:
37
+ DOCKER_BUILD_SUMMARY: false
38
+ with:
39
+ context: .
40
+ file: ./packages/@n8n/benchmark/Dockerfile
41
+ platforms: linux/amd64
42
+ provenance: false
43
+ push: true
44
+ tags: |
45
+ ghcr.io/${{ github.repository_owner }}/n8n-benchmark:latest
.github/workflows/docker-images-custom.yml ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Docker Custom Image CI
2
+ run-name: Build ${{ inputs.branch }} - ${{ inputs.user }}
3
+
4
+ on:
5
+ workflow_dispatch:
6
+ inputs:
7
+ branch:
8
+ description: 'GitHub branch to create image off.'
9
+ required: true
10
+ tag:
11
+ description: 'Name of the docker tag to create.'
12
+ required: true
13
+ merge-master:
14
+ description: 'Merge with master.'
15
+ type: boolean
16
+ required: true
17
+ default: false
18
+ user:
19
+ description: ''
20
+ required: false
21
+ default: 'none'
22
+ start-url:
23
+ description: 'URL to call after workflow is kicked off.'
24
+ required: false
25
+ default: ''
26
+ success-url:
27
+ description: 'URL to call after Docker Image got built successfully.'
28
+ required: false
29
+ default: ''
30
+
31
+ jobs:
32
+ build:
33
+ runs-on: ubuntu-latest
34
+
35
+ steps:
36
+ - name: Call Start URL - optionally
37
+ if: ${{ github.event.inputs.start-url != '' }}
38
+ run: curl -v -X POST -d 'url=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' ${{github.event.inputs.start-url}} || echo ""
39
+ shell: bash
40
+
41
+ - name: Checkout
42
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
43
+ with:
44
+ ref: ${{ github.event.inputs.branch }}
45
+
46
+ - name: Merge Master - optionally
47
+ if: github.event.inputs.merge-master
48
+ run: git remote add upstream https://github.com/n8n-io/n8n.git -f; git merge upstream/master --allow-unrelated-histories || echo ""
49
+ shell: bash
50
+
51
+ - name: Set up QEMU
52
+ uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
53
+
54
+ - name: Set up Docker Buildx
55
+ uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
56
+
57
+ - name: Login to GHCR
58
+ uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
59
+ with:
60
+ registry: ghcr.io
61
+ username: ${{ github.actor }}
62
+ password: ${{ secrets.GITHUB_TOKEN }}
63
+
64
+ - name: Build and push image to GHCR
65
+ uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
66
+ env:
67
+ DOCKER_BUILD_SUMMARY: false
68
+ with:
69
+ context: .
70
+ file: ./docker/images/n8n/Dockerfile
71
+ build-args: |
72
+ N8N_RELEASE_TYPE=development
73
+ platforms: linux/amd64
74
+ provenance: false
75
+ push: true
76
+ cache-from: type=gha
77
+ cache-to: type=gha,mode=max
78
+ tags: ghcr.io/${{ github.repository_owner }}/n8n:${{ inputs.tag }}
79
+
80
+ - name: Call Success URL - optionally
81
+ if: ${{ github.event.inputs.success-url != '' }}
82
+ run: curl -v ${{github.event.inputs.success-url}} || echo ""
83
+ shell: bash
.github/workflows/docker-images-nightly.yml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Docker Nightly Image CI
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 0 * * *'
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
14
+
15
+ - name: Set up QEMU
16
+ uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
17
+
18
+ - name: Set up Docker Buildx
19
+ uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
20
+
21
+ - name: Login to GHCR
22
+ uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
23
+ with:
24
+ registry: ghcr.io
25
+ username: ${{ github.actor }}
26
+ password: ${{ secrets.GITHUB_TOKEN }}
27
+
28
+ - name: Login to DockerHub
29
+ uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
30
+ with:
31
+ username: ${{ secrets.DOCKER_USERNAME }}
32
+ password: ${{ secrets.DOCKER_PASSWORD }}
33
+
34
+ - name: Build and push image to GHCR and DockerHub
35
+ uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
36
+ env:
37
+ DOCKER_BUILD_SUMMARY: false
38
+ with:
39
+ context: .
40
+ file: ./docker/images/n8n/Dockerfile
41
+ build-args: |
42
+ N8N_RELEASE_TYPE=nightly
43
+ platforms: linux/amd64,linux/arm64
44
+ provenance: false
45
+ push: true
46
+ cache-from: type=gha
47
+ cache-to: type=gha,mode=max
48
+ tags: |
49
+ ghcr.io/${{ github.repository_owner }}/n8n:nightly
50
+ ${{ secrets.DOCKER_USERNAME }}/n8n:nightly
.github/workflows/e2e-flaky.yml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Debug Flaky E2E Test
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ test_name:
7
+ description: 'The name of the test to filter.'
8
+ required: true
9
+ type: string
10
+ burn_count:
11
+ description: 'Number of times to run the test.'
12
+ required: false
13
+ type: number
14
+ default: 50
15
+ branch:
16
+ description: 'Optional: GitHub branch, tag, or SHA to test. Defaults to the branch selected in UI.'
17
+ required: false
18
+ type: string
19
+
20
+ jobs:
21
+ debug-test:
22
+ runs-on: blacksmith-4vcpu-ubuntu-2204
23
+ timeout-minutes: 60
24
+
25
+ steps:
26
+ - name: Checkout code
27
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
+ with:
29
+ ref: ${{ github.event.inputs.branch }}
30
+
31
+ - name: Setup PNPM
32
+ uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
33
+
34
+ - name: Setup Node.js
35
+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
36
+ with:
37
+ node-version: '18'
38
+ cache: 'pnpm'
39
+
40
+ - name: Cache build artifacts
41
+ id: cache-build-artifacts
42
+ uses: useblacksmith/cache@c5fe29eb0efdf1cf4186b9f7fcbbcbc0cf025662 # v5.0.2
43
+ with:
44
+ path: |
45
+ /home/runner/.cache/Cypress
46
+ ./packages/**/dist
47
+ key: ${{ github.ref }}-${{ github.sha }}-debug-build
48
+ restore-keys: |
49
+ ${{ github.ref }}-debug-build-
50
+
51
+ - name: Install dependencies
52
+ run: pnpm install --frozen-lockfile
53
+
54
+ - name: Build application
55
+ if: steps.cache-build-artifacts.outputs.cache-hit != 'true'
56
+ run: pnpm build
57
+
58
+ - name: Cypress install
59
+ if: steps.cache-build-artifacts.outputs.cache-hit != 'true'
60
+ working-directory: cypress
61
+ run: pnpm cypress:install
62
+
63
+ - name: Run Flaky Debug Command
64
+ run: pnpm run debug:flaky:e2e "${{ github.event.inputs.test_name }}" ${{ github.event.inputs.burn_count }}
65
+ env:
66
+ NODE_OPTIONS: --dns-result-order=ipv4first
67
+ E2E_TESTS: true
68
+ SHELL: /bin/sh
.github/workflows/e2e-reusable.yml ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Reusable e2e workflow
2
+
3
+ on:
4
+ workflow_call:
5
+ inputs:
6
+ branch:
7
+ description: 'GitHub branch to test.'
8
+ required: false
9
+ type: string
10
+ user:
11
+ description: 'User who kicked this off.'
12
+ required: false
13
+ type: string
14
+ default: 'schedule'
15
+ spec:
16
+ description: 'Specify specs.'
17
+ required: false
18
+ default: 'e2e/*'
19
+ type: string
20
+ record:
21
+ description: 'Record test run.'
22
+ required: false
23
+ default: true
24
+ type: boolean
25
+ parallel:
26
+ description: 'Run tests in parallel.'
27
+ required: false
28
+ default: true
29
+ type: boolean
30
+ containers:
31
+ description: 'Number of containers to run tests in.'
32
+ required: false
33
+ default: '[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]'
34
+ type: string
35
+ pr_number:
36
+ description: 'PR number to run tests for.'
37
+ required: false
38
+ type: number
39
+ secrets:
40
+ CYPRESS_RECORD_KEY:
41
+ description: 'Cypress record key.'
42
+ required: true
43
+ outputs:
44
+ tests_passed:
45
+ description: 'True if all E2E tests passed, otherwise false'
46
+ value: ${{ jobs.check_testing_matrix.outputs.all_tests_passed }}
47
+
48
+ jobs:
49
+ # single job that generates and outputs a common id
50
+ prepare:
51
+ runs-on: ubuntu-latest
52
+ outputs:
53
+ uuid: ${{ steps.uuid.outputs.value }}
54
+ steps:
55
+ - name: Generate unique ID 💎
56
+ id: uuid
57
+ # take the current commit + timestamp together
58
+ # the typical value would be something like
59
+ # "sha-5d3fe...35d3-time-1620841214"
60
+ run: echo "value=sha-$GITHUB_SHA-time-$(date +"%s")" >> $GITHUB_OUTPUT
61
+
62
+ - name: Calculate Git Ref 🤔
63
+ id: calculate_ref
64
+ run: |
65
+ if [ -n "${{ inputs.pr_number }}" ]; then
66
+ echo "value=refs/pull/${{ inputs.pr_number }}/head" >> $GITHUB_OUTPUT
67
+ else
68
+ echo "value=${{ inputs.branch }}" >> $GITHUB_OUTPUT
69
+ fi
70
+ install:
71
+ runs-on: blacksmith-4vcpu-ubuntu-2204
72
+ needs: ['prepare']
73
+
74
+ steps:
75
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
76
+ with:
77
+ ref: ${{ steps.calculate_ref.outputs.value }}
78
+
79
+ - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
80
+
81
+ - name: Cache build artifacts
82
+ id: cache-build-artifacts
83
+ uses: useblacksmith/cache@c5fe29eb0efdf1cf4186b9f7fcbbcbc0cf025662 # v5
84
+ with:
85
+ path: |
86
+ /home/runner/.cache/Cypress
87
+ /github/home/.pnpm-store
88
+ ./packages/**/dist
89
+ key: ${{ github.sha }}-ui
90
+
91
+ - name: Install dependencies
92
+ if: steps.cache-build-artifacts.outputs.cache-hit != 'true'
93
+ run: pnpm install --frozen-lockfile
94
+
95
+ - name: Cypress build
96
+ if: steps.cache-build-artifacts.outputs.cache-hit != 'true'
97
+ uses: cypress-io/github-action@0ee1130f05f69098ab5c560bd198fecf5a14d75b # v6.9.0
98
+ with:
99
+ # Disable running of tests within install job
100
+ runTests: false
101
+ install: false
102
+ build: pnpm build
103
+
104
+ - name: Cypress install
105
+ if: steps.cache-build-artifacts.outputs.cache-hit != 'true'
106
+ working-directory: cypress
107
+ run: pnpm cypress:install
108
+
109
+ testing:
110
+ runs-on: blacksmith-2vcpu-ubuntu-2204
111
+ needs: ['prepare', 'install']
112
+ strategy:
113
+ fail-fast: false
114
+ matrix:
115
+ # If spec is not e2e/* then we run only one container to prevent
116
+ # running the same tests multiple times
117
+ containers: ${{ fromJSON( inputs.spec == 'e2e/*' && inputs.containers || '[1]' ) }}
118
+ steps:
119
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
120
+ with:
121
+ ref: ${{ steps.calculate_ref.outputs.value }}
122
+
123
+ - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
124
+
125
+ - name: Restore cached pnpm modules
126
+ id: cache-build-artifacts
127
+ uses: useblacksmith/cache@c5fe29eb0efdf1cf4186b9f7fcbbcbc0cf025662 # v5
128
+ with:
129
+ path: |
130
+ /home/runner/.cache/Cypress
131
+ /github/home/.pnpm-store
132
+ ./packages/**/dist
133
+ key: ${{ github.sha }}-ui
134
+
135
+ - name: Install dependencies
136
+ run: pnpm install --frozen-lockfile
137
+
138
+ - name: Cypress run
139
+ uses: cypress-io/github-action@0ee1130f05f69098ab5c560bd198fecf5a14d75b # v6.9.0
140
+ with:
141
+ working-directory: cypress
142
+ install: false
143
+ start: pnpm start
144
+ wait-on: 'http://localhost:5678'
145
+ wait-on-timeout: 120
146
+ record: ${{ inputs.record }}
147
+ parallel: ${{ fromJSON( inputs.spec == 'e2e/*' && inputs.parallel || false ) }}
148
+ # We have to provide custom ci-build-id key to make sure that this workflow could be run multiple times
149
+ # in the same parent workflow
150
+ ci-build-id: ${{ needs.prepare.outputs.uuid }}
151
+ spec: '${{ inputs.spec }}'
152
+ env:
153
+ NODE_OPTIONS: --dns-result-order=ipv4first
154
+ CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
155
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
156
+ E2E_TESTS: true
157
+ COMMIT_INFO_MESSAGE: 🌳 ${{ inputs.branch }} 🤖 ${{ inputs.user }} 🗃️ ${{ inputs.spec }}
158
+ SHELL: /bin/sh
159
+
160
+ # Check if all tests passed and set the output variable
161
+ check_testing_matrix:
162
+ runs-on: ubuntu-latest
163
+ needs: [testing]
164
+ outputs:
165
+ all_tests_passed: ${{ steps.all_tests_passed.outputs.result }}
166
+ steps:
167
+ - name: Check all tests passed
168
+ id: all_tests_passed
169
+ run: |
170
+ success=true
171
+ for status in ${{ needs.testing.result }}; do
172
+ if [ $status != "success" ]; then
173
+ success=false
174
+ break
175
+ fi
176
+ done
177
+ echo "::set-output name=result::$success"
.github/workflows/e2e-tests-pr.yml ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: PR E2E
2
+
3
+ on:
4
+ pull_request_review:
5
+ types: [submitted]
6
+
7
+ concurrency:
8
+ group: e2e-${{ github.event.pull_request.number || github.ref }}-${{github.event.review.state}}
9
+ cancel-in-progress: true
10
+
11
+ jobs:
12
+ eligibility_check:
13
+ name: Check Eligibility for Test Run
14
+ if: github.event.review.state == 'approved'
15
+ uses: ./.github/workflows/check-run-eligibility.yml
16
+ with:
17
+ is_pr_approved_by_maintainer: true
18
+
19
+ run-e2e-tests:
20
+ name: E2E [Electron/Node 18]
21
+ uses: ./.github/workflows/e2e-reusable.yml
22
+ needs: [eligibility_check]
23
+ if: needs.eligibility_check.outputs.should_run == 'true'
24
+ with:
25
+ pr_number: ${{ github.event.pull_request.number }}
26
+ user: ${{ github.event.pull_request.user.login || 'PR User' }}
27
+ secrets:
28
+ CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
29
+
30
+ post-e2e-tests:
31
+ name: E2E [Electron/Node 18] - Checks
32
+ runs-on: ubuntu-latest
33
+ needs: [eligibility_check, run-e2e-tests]
34
+ if: always() && needs.eligibility_check.result != 'skipped'
35
+ steps:
36
+ - name: Determine Outcome and Comment Message
37
+ id: determine_outcome
38
+ run: |
39
+ JOB_OUTCOME="success"
40
+ COMMENT_BODY=""
41
+ SHOULD_POST_COMMENT="false"
42
+
43
+ if [[ "${{ needs.eligibility_check.outputs.should_run }}" == "false" ]]; then
44
+ COMMENT_BODY="ℹ️ E2E tests were not run for this PR based on the eligibility criteria."
45
+ SHOULD_POST_COMMENT="true"
46
+ JOB_OUTCOME="success"
47
+ elif [[ "${{ needs.run-e2e-tests.result }}" == "success" ]]; then
48
+ COMMENT_BODY=":white_check_mark: All Cypress E2E specs passed"
49
+ SHOULD_POST_COMMENT="true"
50
+ JOB_OUTCOME="success"
51
+ elif [[ "${{ needs.run-e2e-tests.result }}" == "failure" ]]; then
52
+ COMMENT_BODY=":warning: Some Cypress E2E specs are failing, please fix them before merging"
53
+ SHOULD_POST_COMMENT="true"
54
+ JOB_OUTCOME="failure"
55
+ else
56
+ COMMENT_BODY="ℹ️ E2E tests were scheduled but did not complete as expected (Result: ${{ needs.run-e2e-tests.result }})."
57
+ SHOULD_POST_COMMENT="true"
58
+ JOB_OUTCOME="failure"
59
+ fi
60
+
61
+ echo "comment_body=$COMMENT_BODY" >> $GITHUB_OUTPUT
62
+ echo "should_post_comment=$SHOULD_POST_COMMENT" >> $GITHUB_OUTPUT
63
+ echo "job_outcome=$JOB_OUTCOME" >> $GITHUB_OUTPUT
64
+
65
+ - name: Create or Update PR Comment
66
+ if: steps.determine_outcome.outputs.should_post_comment == 'true'
67
+ uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
68
+ with:
69
+ issue-number: ${{ github.event.pull_request.number }}
70
+ body: ${{ steps.determine_outcome.outputs.comment_body }}
71
+ token: ${{ secrets.GITHUB_TOKEN }}
72
+
73
+ - name: Finalize Job Status
74
+ run: |
75
+ if [[ "${{ steps.determine_outcome.outputs.job_outcome }}" == "failure" ]]; then
76
+ exit 1
77
+ else
78
+ exit 0
79
+ fi
.github/workflows/e2e-tests.yml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: End-to-End tests
2
+ run-name: E2E Tests ${{ inputs.branch }} - ${{ inputs.user }}
3
+
4
+ on:
5
+ schedule:
6
+ - cron: '0 3 * * *'
7
+ workflow_dispatch:
8
+ inputs:
9
+ branch:
10
+ description: 'GitHub branch to test.'
11
+ required: false
12
+ default: 'master'
13
+ spec:
14
+ description: 'Specify specs.'
15
+ required: false
16
+ default: 'e2e/*'
17
+ type: string
18
+ user:
19
+ description: 'User who kicked this off.'
20
+ required: false
21
+ default: 'schedule'
22
+ start-url:
23
+ description: 'URL to call after workflow is kicked off.'
24
+ required: false
25
+ default: ''
26
+ success-url:
27
+ description: 'URL to call after workflow is done.'
28
+ required: false
29
+ default: ''
30
+
31
+ jobs:
32
+ calls-start-url:
33
+ name: Calls start URL
34
+ runs-on: ubuntu-latest
35
+ if: ${{ github.event.inputs.start-url != '' }}
36
+ steps:
37
+ - name: Calls start URL
38
+ run: |
39
+ [[ "${{github.event.inputs.start-url}}" != "" ]] && curl -v -X POST -d 'url=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' ${{github.event.inputs.start-url}} || echo ""
40
+ shell: bash
41
+
42
+ run-e2e-tests:
43
+ name: E2E [Electron/Node 18]
44
+ uses: ./.github/workflows/e2e-reusable.yml
45
+ with:
46
+ branch: ${{ github.event.inputs.branch || 'master' }}
47
+ user: ${{ github.event.inputs.user || 'PR User' }}
48
+ spec: ${{ github.event.inputs.spec || 'e2e/*' }}
49
+ secrets:
50
+ CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
51
+
52
+ calls-success-url-notify:
53
+ name: Calls success URL and notifies
54
+ runs-on: ubuntu-latest
55
+ needs: [run-e2e-tests]
56
+ if: ${{ github.event.inputs.success-url != '' }}
57
+ steps:
58
+ - name: Notify Slack on failure
59
+ uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0.0
60
+ if: failure()
61
+ with:
62
+ status: ${{ job.status }}
63
+ channel: '#alerts-build'
64
+ webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
65
+ message: E2E failure for branch `${{ inputs.branch || 'master' }}` deployed by ${{ inputs.user || 'schedule' }} (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
66
+
67
+ - name: Call Success URL - optionally
68
+ run: |
69
+ [[ "${{github.event.inputs.success-url}}" != "" ]] && curl -v ${{github.event.inputs.success-url}} || echo ""
70
+ shell: bash
.github/workflows/linting-reusable.yml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Reusable linting workflow
2
+
3
+ on:
4
+ workflow_call:
5
+ inputs:
6
+ ref:
7
+ description: GitHub ref to lint.
8
+ required: false
9
+ type: string
10
+ default: master
11
+ cacheKey:
12
+ description: Cache key for modules and build artifacts.
13
+ required: false
14
+ default: ''
15
+ type: string
16
+
17
+ jobs:
18
+ lint:
19
+ name: Lint
20
+ runs-on: blacksmith-4vcpu-ubuntu-2204
21
+ steps:
22
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
23
+ with:
24
+ ref: ${{ inputs.ref }}
25
+
26
+ - uses: useblacksmith/setup-node@65c6ca86fdeb0ab3d85e78f57e4f6a7e4780b391 # v5
27
+ with:
28
+ node-version: 20.x
29
+
30
+ - name: Setup corepack and pnpm
31
+ run: |
32
+ npm i -g corepack@0.31
33
+ corepack enable
34
+
35
+ - name: Install dependencies
36
+ run: pnpm install --frozen-lockfile
37
+
38
+ - name: Setup build cache
39
+ uses: useblacksmith/caching-for-turbo@bafb57e7ebdbf1185762286ec94d24648cd3938a # v1
40
+
41
+ - name: Build
42
+ if: ${{ inputs.cacheKey == '' }}
43
+ run: pnpm build
44
+
45
+ - name: Restore cached build artifacts
46
+ if: ${{ inputs.cacheKey != '' }}
47
+ uses: useblacksmith/cache/restore@c5fe29eb0efdf1cf4186b9f7fcbbcbc0cf025662 # v5
48
+ with:
49
+ path: ./packages/**/dist
50
+ key: ${{ inputs.cacheKey }}
51
+ fail-on-cache-miss: true
52
+
53
+ - name: Lint Backend
54
+ run: pnpm lint:backend
55
+
56
+ - name: Lint Nodes
57
+ run: pnpm lint:nodes
58
+
59
+ - name: Lint Frontend
60
+ run: pnpm lint:frontend
.github/workflows/notify-pr-status.yml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Notify PR status changed
2
+
3
+ on:
4
+ pull_request_review:
5
+ types: [submitted, dismissed]
6
+ pull_request:
7
+ types: [closed]
8
+
9
+ jobs:
10
+ notify:
11
+ runs-on: ubuntu-latest
12
+ if: >-
13
+ (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') ||
14
+ (github.event_name == 'pull_request_review' && github.event.review.state == 'dismissed') ||
15
+ (github.event_name == 'pull_request' && github.event.pull_request.merged == true) ||
16
+ (github.event_name == 'pull_request' && github.event.pull_request.merged == false && github.event.action == 'closed')
17
+ steps:
18
+ - uses: fjogeleit/http-request-action@bf78da14118941f7e940279dd58f67e863cbeff6 # v1
19
+ if: ${{!contains(github.event.pull_request.labels.*.name, 'community')}}
20
+ name: Notify
21
+ env:
22
+ PR_URL: ${{ github.event.pull_request.html_url }}
23
+ with:
24
+ url: ${{ secrets.N8N_NOTIFY_PR_STATUS_CHANGED_URL }}
25
+ method: 'POST'
26
+ customHeaders: '{ "x-api-token": "${{ secrets.N8N_NOTIFY_PR_STATUS_CHANGED_TOKEN }}" }'
27
+ data: '{ "event_name": "${{ github.event_name }}", "pr_url": "${{ env.PR_URL }}", "event": ${{ toJSON(github.event) }} }'
.github/workflows/release-create-pr.yml ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: 'Release: Create Pull Request'
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ base-branch:
7
+ description: 'The branch, tag, or commit to create this release PR from.'
8
+ required: true
9
+ default: 'master'
10
+
11
+ release-type:
12
+ description: 'A SemVer release type.'
13
+ required: true
14
+ type: choice
15
+ default: 'minor'
16
+ options:
17
+ - patch
18
+ - minor
19
+ - major
20
+
21
+ jobs:
22
+ create-release-pr:
23
+ runs-on: ubuntu-latest
24
+
25
+ permissions:
26
+ contents: write
27
+ pull-requests: write
28
+
29
+ timeout-minutes: 5
30
+
31
+ steps:
32
+ - name: Checkout
33
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
34
+ with:
35
+ fetch-depth: 0
36
+ ref: ${{ github.event.inputs.base-branch }}
37
+
38
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
39
+ with:
40
+ node-version: 20.x
41
+
42
+ - run: npm install --prefix=.github/scripts --no-package-lock
43
+
44
+ - name: Setup corepack and pnpm
45
+ run: |
46
+ npm i -g corepack@0.31
47
+ corepack enable
48
+
49
+ - name: Bump package versions
50
+ run: |
51
+ echo "NEXT_RELEASE=$(node .github/scripts/bump-versions.mjs)" >> $GITHUB_ENV
52
+ env:
53
+ RELEASE_TYPE: ${{ github.event.inputs.release-type }}
54
+
55
+ - name: Update Changelog
56
+ run: node .github/scripts/update-changelog.mjs
57
+
58
+ - name: Push the base branch
59
+ run: |
60
+ git push -f origin refs/remotes/origin/${{ github.event.inputs.base-branch }}:refs/heads/release/${{ env.NEXT_RELEASE }}
61
+
62
+ - name: Push the release branch, and Create the PR
63
+ uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
64
+ with:
65
+ base: 'release/${{ env.NEXT_RELEASE }}'
66
+ branch: 'release-pr/${{ env.NEXT_RELEASE }}'
67
+ commit-message: ':rocket: Release ${{ env.NEXT_RELEASE }}'
68
+ delete-branch: true
69
+ labels: release,release:${{ github.event.inputs.release-type }}
70
+ title: ':rocket: Release ${{ env.NEXT_RELEASE }}'
71
+ body-path: 'CHANGELOG-${{ env.NEXT_RELEASE }}.md'
.github/workflows/release-publish.yml ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: 'Release: Publish'
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - closed
7
+ branches:
8
+ - 'release/*'
9
+
10
+ jobs:
11
+ publish-to-npm:
12
+ name: Publish to NPM
13
+ runs-on: ubuntu-latest
14
+ if: github.event.pull_request.merged == true
15
+ timeout-minutes: 10
16
+ permissions:
17
+ id-token: write
18
+ env:
19
+ NPM_CONFIG_PROVENANCE: true
20
+ outputs:
21
+ release: ${{ steps.set-release.outputs.release }}
22
+ steps:
23
+ - name: Checkout
24
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25
+ with:
26
+ fetch-depth: 0
27
+
28
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
29
+ with:
30
+ node-version: 20.x
31
+
32
+ - name: Setup corepack and pnpm
33
+ run: |
34
+ npm i -g corepack@0.31
35
+ corepack enable
36
+
37
+ - run: pnpm install --frozen-lockfile
38
+
39
+ - name: Set release version in env
40
+ run: echo "RELEASE=$(node -e 'console.log(require("./package.json").version)')" >> $GITHUB_ENV
41
+
42
+ - name: Build
43
+ run: pnpm build
44
+
45
+ - name: Cache build artifacts
46
+ uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
47
+ with:
48
+ path: ./packages/**/dist
49
+ key: ${{ github.sha }}-release:build
50
+
51
+ - name: Dry-run publishing
52
+ run: pnpm publish -r --no-git-checks --dry-run
53
+
54
+ - name: Pre publishing changes
55
+ run: |
56
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
57
+ node .github/scripts/trim-fe-packageJson.js
58
+ node .github/scripts/ensure-provenance-fields.mjs
59
+ cp README.md packages/cli/README.md
60
+ sed -i "s/default: 'dev'/default: 'stable'/g" packages/cli/dist/config/schema.js
61
+
62
+ - name: Publish to NPM
63
+ run: pnpm publish -r --publish-branch ${{github.event.pull_request.base.ref}} --access public --tag rc --no-git-checks
64
+
65
+ - name: Cleanup rc tag
66
+ run: npm dist-tag rm n8n rc
67
+ continue-on-error: true
68
+
69
+ - id: set-release
70
+ run: echo "release=${{ env.RELEASE }}" >> $GITHUB_OUTPUT
71
+
72
+ publish-to-docker-hub:
73
+ name: Publish to DockerHub
74
+ needs: [publish-to-npm]
75
+ runs-on: ubuntu-latest
76
+ if: github.event.pull_request.merged == true
77
+ timeout-minutes: 15
78
+
79
+ steps:
80
+ - name: Checkout
81
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
82
+ with:
83
+ fetch-depth: 0
84
+
85
+ - name: Set up QEMU
86
+ uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
87
+
88
+ - name: Set up Docker Buildx
89
+ uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
90
+
91
+ - name: Login to GitHub Container Registry
92
+ uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
93
+ with:
94
+ registry: ghcr.io
95
+ username: ${{ github.actor }}
96
+ password: ${{ secrets.GITHUB_TOKEN }}
97
+
98
+ - name: Login to DockerHub
99
+ uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
100
+ with:
101
+ username: ${{ secrets.DOCKER_USERNAME }}
102
+ password: ${{ secrets.DOCKER_PASSWORD }}
103
+
104
+ - name: Build
105
+ uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
106
+ env:
107
+ DOCKER_BUILD_SUMMARY: false
108
+ with:
109
+ context: .
110
+ file: docker/images/n8n/Dockerfile
111
+ build-args: |
112
+ N8N_VERSION=${{ needs.publish-to-npm.outputs.release }}
113
+ N8N_RELEASE_TYPE=stable
114
+ cache-from: type=gha
115
+ cache-to: type=gha,mode=max
116
+ platforms: linux/amd64,linux/arm64
117
+ provenance: false
118
+ push: true
119
+ tags: |
120
+ ${{ secrets.DOCKER_USERNAME }}/n8n:${{ needs.publish-to-npm.outputs.release }}
121
+ ghcr.io/${{ github.repository_owner }}/n8n:${{ needs.publish-to-npm.outputs.release }}
122
+
123
+ create-github-release:
124
+ name: Create a GitHub Release
125
+ needs: [publish-to-npm, publish-to-docker-hub]
126
+ runs-on: ubuntu-latest
127
+ if: github.event.pull_request.merged == true
128
+ timeout-minutes: 5
129
+
130
+ permissions:
131
+ contents: write
132
+ id-token: write
133
+
134
+ steps:
135
+ - name: Create a Release on GitHub
136
+ uses: ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # v1
137
+ with:
138
+ commit: ${{github.event.pull_request.base.ref}}
139
+ tag: 'n8n@${{ needs.publish-to-npm.outputs.release }}'
140
+ prerelease: true
141
+ makeLatest: false
142
+ body: ${{github.event.pull_request.body}}
143
+
144
+ create-sentry-release:
145
+ name: Create a Sentry Release
146
+ needs: [publish-to-npm, publish-to-docker-hub]
147
+ runs-on: ubuntu-latest
148
+ if: github.event.pull_request.merged == true
149
+ timeout-minutes: 5
150
+ env:
151
+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
152
+ SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
153
+
154
+ steps:
155
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
156
+ - name: Restore cached build artifacts
157
+ uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
158
+ with:
159
+ path: ./packages/**/dist
160
+ key: ${{ github.sha }}-release:build
161
+
162
+ - name: Create a frontend release
163
+ uses: getsentry/action-release@e769183448303de84c5a06aaaddf9da7be26d6c7 # v1.7.0
164
+ continue-on-error: true
165
+ with:
166
+ projects: ${{ secrets.SENTRY_FRONTEND_PROJECT }}
167
+ version: n8n@${{ needs.publish-to-npm.outputs.release }}
168
+ sourcemaps: packages/frontend/editor-ui/dist
169
+
170
+ - name: Create a backend release
171
+ uses: getsentry/action-release@e769183448303de84c5a06aaaddf9da7be26d6c7 # v1.7.0
172
+ continue-on-error: true
173
+ with:
174
+ projects: ${{ secrets.SENTRY_BACKEND_PROJECT }}
175
+ version: n8n@${{ needs.publish-to-npm.outputs.release }}
176
+ sourcemaps: packages/cli/dist packages/core/dist packages/nodes-base/dist packages/@n8n/n8n-nodes-langchain/dist
177
+
178
+ - name: Create a task runner release
179
+ uses: getsentry/action-release@e769183448303de84c5a06aaaddf9da7be26d6c7 # v1.7.0
180
+ continue-on-error: true
181
+ with:
182
+ projects: ${{ secrets.SENTRY_TASK_RUNNER_PROJECT }}
183
+ version: n8n@${{ needs.publish-to-npm.outputs.release }}
184
+ sourcemaps: packages/core/dist packages/workflow/dist packages/@n8n/task-runner/dist
185
+
186
+ trigger-release-note:
187
+ name: Trigger a release note
188
+ needs: [publish-to-npm, create-github-release]
189
+ if: github.event.pull_request.merged == true
190
+ runs-on: ubuntu-latest
191
+ steps:
192
+ - name: Trigger a release note
193
+ run: curl -u docsWorkflows:${{ secrets.N8N_WEBHOOK_DOCS_PASSWORD }} --request GET 'https://internal.users.n8n.cloud/webhook/trigger-release-note' --header 'Content-Type:application/json' --data '{"version":"${{ needs.publish-to-npm.outputs.release }}"}'
194
+
195
+ # merge-back-into-master:
196
+ # name: Merge back into master
197
+ # needs: [publish-to-npm, create-github-release]
198
+ # if: ${{ github.event.pull_request.merged == true && !contains(github.event.pull_request.labels.*.name, 'release:patch') }}
199
+ # runs-on: ubuntu-latest
200
+ # steps:
201
+ # - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
202
+ # v4.1.1
203
+ # fetch-depth: 0
204
+ # - run: |
205
+ # git checkout --track origin/master
206
+ # git config user.name "github-actions[bot]"
207
+ # git config user.email 41898282+github-actions[bot]@users.noreply.github.com
208
+ # git merge --ff n8n@${{ needs.publish-to-npm.outputs.release }}
209
+ # git push origin master
210
+ # git push origin :${{github.event.pull_request.base.ref}}
.github/workflows/release-push-to-channel.yml ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: 'Release: Push to Channel'
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: 'n8n Release version to push to a channel (e.g., 1.2.3 or 1.2.3-beta.4)'
8
+ required: true
9
+ type: string
10
+
11
+ release-channel:
12
+ description: 'Release channel'
13
+ required: true
14
+ type: choice
15
+ default: 'beta'
16
+ options:
17
+ - beta
18
+ - stable
19
+
20
+ jobs:
21
+ validate-inputs:
22
+ name: Validate Inputs
23
+ runs-on: ubuntu-latest
24
+ outputs:
25
+ version: ${{ steps.check_version.outputs.version }}
26
+ release_channel: ${{ github.event.inputs.release-channel }}
27
+ steps:
28
+ - name: Check Version Format
29
+ id: check_version
30
+ run: |
31
+ input_version="${{ github.event.inputs.version }}"
32
+ version_regex='^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.-]+)?$'
33
+
34
+ if [[ "$input_version" =~ $version_regex ]]; then
35
+ echo "Version format is valid: $input_version"
36
+ echo "version=$input_version" >> $GITHUB_OUTPUT
37
+ else
38
+ echo "::error::Invalid version format provided: '$input_version'. Must match regex '$version_regex'."
39
+ exit 1
40
+ fi
41
+
42
+ release-to-npm:
43
+ name: Release to NPM
44
+ runs-on: ubuntu-latest
45
+ needs: validate-inputs
46
+ timeout-minutes: 5
47
+ steps:
48
+ - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
49
+ with:
50
+ node-version: 20.x
51
+
52
+ - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
53
+
54
+ - name: Add beta/next tags to NPM
55
+ if: needs.validate-inputs.outputs.release_channel == 'beta'
56
+ run: |
57
+ npm dist-tag add "n8n@${{ needs.validate-inputs.outputs.version }}" next
58
+ npm dist-tag add "n8n@${{ needs.validate-inputs.outputs.version }}" beta
59
+
60
+ - name: Add latest/stable tags to NPM
61
+ if: needs.validate-inputs.outputs.release_channel == 'stable'
62
+ run: |
63
+ npm dist-tag add "n8n@${{ needs.validate-inputs.outputs.version }}" latest
64
+ npm dist-tag add "n8n@${{ needs.validate-inputs.outputs.version }}" stable
65
+
66
+ release-to-docker-hub:
67
+ name: Release to DockerHub
68
+ runs-on: ubuntu-latest
69
+ needs: validate-inputs
70
+ timeout-minutes: 5
71
+ steps:
72
+ - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
73
+ with:
74
+ username: ${{ secrets.DOCKER_USERNAME }}
75
+ password: ${{ secrets.DOCKER_PASSWORD }}
76
+
77
+ - name: Tag stable/latest Docker image
78
+ if: needs.validate-inputs.outputs.release_channel == 'stable'
79
+ run: |
80
+ docker buildx imagetools create -t "${{ secrets.DOCKER_USERNAME }}/n8n:stable" "${{ secrets.DOCKER_USERNAME }}/n8n:${{ needs.validate-inputs.outputs.version }}"
81
+ docker buildx imagetools create -t "${{ secrets.DOCKER_USERNAME }}/n8n:latest" "${{ secrets.DOCKER_USERNAME }}/n8n:${{ needs.validate-inputs.outputs.version }}"
82
+
83
+ - name: Tag beta/next Docker image
84
+ if: needs.validate-inputs.outputs.release_channel == 'beta'
85
+ run: |
86
+ docker buildx imagetools create -t "${{ secrets.DOCKER_USERNAME }}/n8n:beta" "${{ secrets.DOCKER_USERNAME }}/n8n:${{ needs.validate-inputs.outputs.version }}"
87
+ docker buildx imagetools create -t "${{ secrets.DOCKER_USERNAME }}/n8n:next" "${{ secrets.DOCKER_USERNAME }}/n8n:${{ needs.validate-inputs.outputs.version }}"
88
+
89
+ release-to-github-container-registry:
90
+ name: Release to GitHub Container Registry
91
+ runs-on: ubuntu-latest
92
+ needs: validate-inputs
93
+ timeout-minutes: 5
94
+ steps:
95
+ - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
96
+ with:
97
+ registry: ghcr.io
98
+ username: ${{ github.actor }}
99
+ password: ${{ secrets.GITHUB_TOKEN }}
100
+
101
+ - name: Tag stable/latest GHCR image
102
+ if: needs.validate-inputs.outputs.release_channel == 'stable'
103
+ run: |
104
+ docker buildx imagetools create -t "ghcr.io/${{ github.repository_owner }}/n8n:stable" "ghcr.io/${{ github.repository_owner }}/n8n:${{ needs.validate-inputs.outputs.version }}"
105
+ docker buildx imagetools create -t "ghcr.io/${{ github.repository_owner }}/n8n:latest" "ghcr.io/${{ github.repository_owner }}/n8n:${{ needs.validate-inputs.outputs.version }}"
106
+
107
+ - name: Tag beta/next GHCR image
108
+ if: needs.validate-inputs.outputs.release_channel == 'beta'
109
+ run: |
110
+ docker buildx imagetools create -t "ghcr.io/${{ github.repository_owner }}/n8n:beta" "ghcr.io/${{ github.repository_owner }}/n8n:${{ needs.validate-inputs.outputs.version }}"
111
+ docker buildx imagetools create -t "ghcr.io/${{ github.repository_owner }}/n8n:next" "ghcr.io/${{ github.repository_owner }}/n8n:${{ needs.validate-inputs.outputs.version }}"
112
+
113
+ update-docs:
114
+ name: Update latest and next in the docs
115
+ runs-on: ubuntu-latest
116
+ needs: [validate-inputs, release-to-npm, release-to-docker-hub]
117
+ steps:
118
+ - continue-on-error: true
119
+ run: curl -u docsWorkflows:${{ secrets.N8N_WEBHOOK_DOCS_PASSWORD }} --request GET 'https://internal.users.n8n.cloud/webhook/update-latest-next'
.github/workflows/test-workflows-callable.yml ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Callable Test Workflows
2
+
3
+ on:
4
+ workflow_call:
5
+ inputs:
6
+ git_ref:
7
+ description: 'The Git ref (branch, tag, or SHA) to checkout and test.'
8
+ required: true
9
+ type: string
10
+ send_webhook_report:
11
+ description: 'Set to true to send test results to the webhook.'
12
+ required: false
13
+ type: boolean
14
+ default: false
15
+ pr_number:
16
+ description: 'The PR number, if applicable (for context in webhook).'
17
+ required: false
18
+ type: string
19
+ default: ''
20
+ secrets:
21
+ ENCRYPTION_KEY:
22
+ description: 'Encryption key for n8n operations.'
23
+ required: true
24
+ CI_SENTRY_DSN:
25
+ description: 'Sentry DSN for CI test runs.'
26
+ required: false
27
+ WORKFLOW_TESTS_RESULT_DESTINATION:
28
+ description: 'Webhook URL to send test results to (if enabled).'
29
+ required: false
30
+
31
+ jobs:
32
+ build_and_test:
33
+ name: Install, Build, and Test Workflows
34
+ runs-on: blacksmith-2vcpu-ubuntu-2204
35
+ timeout-minutes: 10
36
+ env:
37
+ N8N_ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }}
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
42
+ with:
43
+ ref: ${{ inputs.git_ref }}
44
+
45
+ - name: Setup Environment and Build Project
46
+ uses: ./.github/actions/setup-and-build
47
+ with:
48
+ node-version: '22.x'
49
+ cache-suffix: 'workflow-test'
50
+
51
+ - name: Install OS dependencies
52
+ run: |
53
+ sudo apt update -y
54
+ echo 'tzdata tzdata/Areas select Europe' | sudo debconf-set-selections
55
+ echo 'tzdata tzdata/Zones/Europe select Paris' | sudo debconf-set-selections
56
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends graphicsmagick
57
+ sudo apt-get clean
58
+ sudo rm -rf /var/lib/apt/lists/*
59
+
60
+ - name: Import credentials
61
+ run: ./packages/cli/bin/n8n import:credentials --input=test-workflows/credentials.json
62
+
63
+ - name: Import workflows
64
+ run: ./packages/cli/bin/n8n import:workflow --separate --input=test-workflows/workflows
65
+
66
+
67
+ - name: Copy static assets
68
+ run: |
69
+ mkdir -p /tmp/testData/pdfs
70
+ cp assets/n8n-logo.png /tmp/n8n-logo.png
71
+ cp assets/n8n-screenshot.png /tmp/n8n-screenshot.png
72
+ cp test-workflows/testData/pdfs/*.pdf /tmp/testData/pdfs/
73
+
74
+ - name: Run tests
75
+ id: tests
76
+ run: ./packages/cli/bin/n8n executeBatch --shallow --skipList=test-workflows/skipList.json --githubWorkflow --shortOutput --output=test-results.json --concurrency=16 --compare=test-workflows/snapshots
77
+ continue-on-error: true
78
+ env:
79
+ SKIP_STATISTICS_EVENTS: "true"
80
+ DB_SQLITE_POOL_SIZE: "4"
81
+ N8N_SENTRY_DSN: ${{ secrets.CI_SENTRY_DSN }}
82
+
83
+ - name: Report test outcome
84
+ if: always()
85
+ run: |
86
+ echo "Test step outcome was: ${{ steps.tests.outcome }}"
87
+ if [[ "${{ steps.tests.outcome }}" == "failure" ]]; then
88
+ echo "Workflow tests failed but the workflow will continue."
89
+ elif [[ "${{ steps.tests.outcome }}" == "success" ]]; then
90
+ echo "Workflow tests passed."
91
+ else
92
+ echo "Workflow tests outcome: ${{ steps.tests.outcome }}"
93
+ fi
94
+
95
+ - name: Prepare and Send Test Results to Webhook
96
+ if: inputs.send_webhook_report == true
97
+ shell: bash
98
+ env:
99
+ WEBHOOK_URL: ${{ secrets.WORKFLOW_TESTS_RESULT_DESTINATION }}
100
+ TEST_RESULTS_FILE: ./test-results.json
101
+ GH_REPOSITORY: ${{ github.repository }}
102
+ GH_RUN_ID: ${{ github.run_id }}
103
+ GH_RUN_ATTEMPT: ${{ github.run_attempt }}
104
+ GH_REF_TESTED: ${{ inputs.git_ref }}
105
+ GH_EVENT_NAME: ${{ github.event_name }}
106
+ GH_PR_NUMBER_INPUT: ${{ inputs.pr_number }}
107
+ GH_WORKFLOW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
108
+ GH_ACTOR: ${{ github.actor }}
109
+ run: |
110
+ echo "Attempting to send test results to webhook..."
111
+ echo "Test results file expected at: $TEST_RESULTS_FILE"
112
+
113
+ if [ ! -f "$TEST_RESULTS_FILE" ]; then
114
+ echo "::warning::Test results file ($TEST_RESULTS_FILE) not found. Skipping webhook."
115
+ exit 0
116
+ fi
117
+
118
+ if ! command -v jq &> /dev/null; then
119
+ echo "jq not found. Installing jq..."
120
+ sudo apt-get update -qq && sudo apt-get install -y -qq jq
121
+ if ! command -v jq &> /dev/null; then
122
+ echo "::error::Failed to install jq. Cannot process JSON."
123
+ exit 1
124
+ fi
125
+ fi
126
+
127
+ pr_number_to_send="$GH_PR_NUMBER_INPUT"
128
+
129
+ echo "Preparing JSON payload..."
130
+ if [ ! -s "$TEST_RESULTS_FILE" ]; then
131
+ echo "::warning::Test results file ($TEST_RESULTS_FILE) is empty. Sending only GitHub context."
132
+ enriched_payload=$(jq -n \
133
+ --arg repository "$GH_REPOSITORY" \
134
+ --arg run_id "$GH_RUN_ID" \
135
+ --arg run_attempt "$GH_RUN_ATTEMPT" \
136
+ --arg ref_tested "$GH_REF_TESTED" \
137
+ --arg event_name "$GH_EVENT_NAME" \
138
+ --arg pr_num "$pr_number_to_send" \
139
+ --arg workflow_run_url "$GH_WORKFLOW_RUN_URL" \
140
+ --arg actor "$GH_ACTOR" \
141
+ '{
142
+ githubWorkflowContext: {
143
+ repository: $repository,
144
+ runId: $run_id,
145
+ runAttempt: $run_attempt,
146
+ gitRefTested: $ref_tested,
147
+ triggeringEventName: $event_name,
148
+ prNumber: (if $pr_num == "" then null else $pr_num | tonumber? // $pr_num end),
149
+ workflowRunUrl: $workflow_run_url,
150
+ triggeredBy: $actor
151
+ }
152
+ }')
153
+ else
154
+ enriched_payload=$(jq \
155
+ --arg repository "$GH_REPOSITORY" \
156
+ --arg run_id "$GH_RUN_ID" \
157
+ --arg run_attempt "$GH_RUN_ATTEMPT" \
158
+ --arg ref_tested "$GH_REF_TESTED" \
159
+ --arg event_name "$GH_EVENT_NAME" \
160
+ --arg pr_num "$pr_number_to_send" \
161
+ --arg workflow_run_url "$GH_WORKFLOW_RUN_URL" \
162
+ --arg actor "$GH_ACTOR" \
163
+ '. + {
164
+ githubWorkflowContext: {
165
+ repository: $repository,
166
+ runId: $run_id,
167
+ runAttempt: $run_attempt,
168
+ gitRefTested: $ref_tested,
169
+ triggeringEventName: $event_name,
170
+ prNumber: (if $pr_num == "" then null else $pr_num | tonumber? // $pr_num end),
171
+ workflowRunUrl: $workflow_run_url,
172
+ triggeredBy: $actor
173
+ }
174
+ }' "$TEST_RESULTS_FILE")
175
+ fi
176
+
177
+ jq_exit_code=$?
178
+ if [ $jq_exit_code -ne 0 ] || [ -z "$enriched_payload" ]; then
179
+ echo "::error::Failed to process JSON with jq (exit code: $jq_exit_code). Input file: $TEST_RESULTS_FILE"
180
+ if [ -s "$TEST_RESULTS_FILE" ]; then
181
+ echo "Contents of $TEST_RESULTS_FILE that may have caused an error:"
182
+ head -c 1000 "$TEST_RESULTS_FILE" # Print first 1000 chars
183
+ echo "" # Newline after head
184
+ elif [ -f "$TEST_RESULTS_FILE" ]; then
185
+ echo "$TEST_RESULTS_FILE exists but is empty."
186
+ fi
187
+ exit 1
188
+ fi
189
+
190
+ echo "Enriched payload to send (first 500 chars):"
191
+ echo "$enriched_payload" | head -c 500
192
+ echo ""
193
+
194
+ echo "Sending data to webhook: $WEBHOOK_URL"
195
+ http_response_code=$(curl -s -w "%{http_code}" \
196
+ -X POST \
197
+ -H "Content-Type: application/json" \
198
+ -H "X-GitHub-Event: $GH_EVENT_NAME" \
199
+ -H "X-GitHub-Run-Id: $GH_RUN_ID" \
200
+ --data "$enriched_payload" \
201
+ "$WEBHOOK_URL" \
202
+ -o curl_response_body.txt 2>curl_stderr.txt)
203
+
204
+ curl_stderr_content=$(cat curl_stderr.txt)
205
+ if [ -n "$curl_stderr_content" ]; then
206
+ echo "::warning::curl stderr: $curl_stderr_content"
207
+ fi
208
+ echo "Webhook response code: $http_response_code"
209
+ echo "Webhook response body:"
210
+ cat curl_response_body.txt
211
+ if [[ "$http_response_code" -ge 200 && "$http_response_code" -lt 300 ]]; then
212
+ echo "Successfully sent data to webhook."
213
+ else
214
+ echo "::error::Webhook call failed with status code $http_response_code."
215
+ fi
.github/workflows/test-workflows-nightly.yml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Test Workflows Nightly and Manual
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 2 * * *'
6
+ workflow_dispatch:
7
+ inputs:
8
+ git_ref_to_test:
9
+ description: 'The Git ref (branch, tag, or SHA) to run tests against.'
10
+ required: true
11
+ type: string
12
+ default: 'master'
13
+
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ run_workflow_tests:
20
+ name: Run Workflow Tests
21
+ uses: ./.github/workflows/test-workflows-callable.yml
22
+ with:
23
+ git_ref: ${{ github.event_name == 'schedule' && 'master' || github.event.inputs.git_ref_to_test }}
24
+ send_webhook_report: false
25
+ pr_number: ''
26
+ secrets: inherit
.github/workflows/test-workflows-pr-approved.yml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Test Workflows on PR Approval
2
+
3
+ on:
4
+ pull_request_review:
5
+ types: [submitted]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ eligibility_check:
12
+ name: Check Eligibility for Test Run
13
+ if: github.event.review.state == 'approved'
14
+ uses: ./.github/workflows/check-run-eligibility.yml
15
+ with:
16
+ is_pr_approved_by_maintainer: true
17
+
18
+ run_workflow_tests:
19
+ name: Run Tests on Approved Internal PR
20
+ needs: [eligibility_check]
21
+ if: needs.eligibility_check.outputs.should_run == 'true'
22
+ uses: ./.github/workflows/test-workflows-callable.yml
23
+ with:
24
+ git_ref: ${{ github.event.pull_request.head.sha }}
25
+ send_webhook_report: true
26
+ pr_number: ${{ github.event.pull_request.number }}
27
+ secrets: inherit
.github/workflows/test-workflows-pr-comment.yml ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Test Workflows on PR Comment
2
+
3
+ on:
4
+ issue_comment:
5
+ types: [created]
6
+
7
+ permissions:
8
+ pull-requests: read
9
+ contents: read
10
+
11
+ jobs:
12
+ handle_comment_command:
13
+ name: Handle /test-workflows Command
14
+ if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/test-workflows')
15
+ runs-on: ubuntu-latest
16
+ outputs:
17
+ permission_granted: ${{ steps.pr_check_and_details.outputs.permission_granted }}
18
+ git_ref: ${{ steps.pr_check_and_details.outputs.head_sha }}
19
+ pr_number: ${{ steps.pr_check_and_details.outputs.pr_number_string }}
20
+
21
+ steps:
22
+ - name: Validate User, Get PR Details, and React
23
+ id: pr_check_and_details
24
+ uses: actions/github-script@v7
25
+ with:
26
+ github-token: ${{ secrets.GITHUB_TOKEN }}
27
+ script: |
28
+ const commenter = context.actor;
29
+ const issueOwner = context.repo.owner;
30
+ const issueRepo = context.repo.repo;
31
+ const commentId = context.payload.comment.id;
32
+ const prNumber = context.issue.number; // In issue_comment on a PR, issue.number is the PR number
33
+
34
+ // Function to add a reaction to the comment
35
+ async function addReaction(content) {
36
+ try {
37
+ await github.rest.reactions.createForIssueComment({
38
+ owner: issueOwner,
39
+ repo: issueRepo,
40
+ comment_id: commentId,
41
+ content: content
42
+ });
43
+ } catch (reactionError) {
44
+ // Log if reaction fails but don't fail the script for this
45
+ console.log(`Failed to add reaction '${content}': ${reactionError.message}`);
46
+ }
47
+ }
48
+
49
+ // Initialize outputs to a non-triggering state
50
+ core.setOutput('permission_granted', 'false');
51
+ core.setOutput('head_sha', '');
52
+ core.setOutput('pr_number_string', '');
53
+
54
+ // 1. Check user permissions
55
+ try {
56
+ const { data: permissions } = await github.rest.repos.getCollaboratorPermissionLevel({
57
+ owner: issueOwner,
58
+ repo: issueRepo,
59
+ username: commenter
60
+ });
61
+
62
+ const allowedPermissions = ['admin', 'write', 'maintain'];
63
+ if (!allowedPermissions.includes(permissions.permission)) {
64
+ console.log(`User @${commenter} has '${permissions.permission}' permission. Needs 'admin', 'write', or 'maintain'.`);
65
+ await addReaction('-1'); // User does not have permission
66
+ return; // Exit script, tests will not be triggered
67
+ }
68
+ console.log(`User @${commenter} has '${permissions.permission}' permission.`);
69
+ } catch (error) {
70
+ console.log(`Could not verify permissions for @${commenter}: ${error.message}`);
71
+ await addReaction('confused'); // Error checking permissions
72
+ return; // Exit script
73
+ }
74
+
75
+ // 2. Fetch PR details (if permission check passed)
76
+ let headSha;
77
+ try {
78
+ const { data: pr } = await github.rest.pulls.get({
79
+ owner: issueOwner,
80
+ repo: issueRepo,
81
+ pull_number: prNumber,
82
+ });
83
+ headSha = pr.head.sha;
84
+ console.log(`Workspaced PR details: SHA - ${headSha}, PR Number - ${prNumber}`);
85
+
86
+ // Set outputs for the next job
87
+ core.setOutput('permission_granted', 'true');
88
+ core.setOutput('head_sha', headSha);
89
+ core.setOutput('pr_number_string', prNumber.toString());
90
+ await addReaction('+1'); // Command accepted, tests will be triggered
91
+
92
+ } catch (error) {
93
+ console.log(`Failed to fetch PR details for PR #${prNumber}: ${error.message}`);
94
+ core.setOutput('permission_granted', 'false'); // Ensure this is false if PR fetch fails
95
+ await addReaction('confused'); // Error fetching PR details
96
+ }
97
+
98
+ trigger_reusable_tests:
99
+ name: Trigger Reusable Test Workflow
100
+ needs: handle_comment_command
101
+
102
+ if: >
103
+ always() &&
104
+ needs.handle_comment_command.result != 'skipped' &&
105
+ needs.handle_comment_command.outputs.permission_granted == 'true' &&
106
+ needs.handle_comment_command.outputs.git_ref != ''
107
+ uses: ./.github/workflows/test-workflows-callable.yml
108
+ with:
109
+ git_ref: ${{ needs.handle_comment_command.outputs.git_ref }}
110
+ send_webhook_report: true
111
+ pr_number: ${{ needs.handle_comment_command.outputs.pr_number }}
112
+ secrets: inherit
.github/workflows/units-tests-reusable.yml ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Reusable units test workflow
2
+
3
+ on:
4
+ workflow_call:
5
+ inputs:
6
+ ref:
7
+ description: GitHub ref to test.
8
+ required: false
9
+ type: string
10
+ default: master
11
+ nodeVersion:
12
+ description: Version of node to use.
13
+ required: false
14
+ type: string
15
+ default: 20.x
16
+ cacheKey:
17
+ description: Cache key for modules and build artifacts.
18
+ required: false
19
+ default: ''
20
+ type: string
21
+ collectCoverage:
22
+ required: false
23
+ default: false
24
+ type: boolean
25
+ ignoreTurboCache:
26
+ required: false
27
+ default: false
28
+ type: boolean
29
+ skipFrontendTests:
30
+ required: false
31
+ default: false
32
+ type: boolean
33
+ secrets:
34
+ CODECOV_TOKEN:
35
+ description: 'Codecov upload token.'
36
+ required: false
37
+
38
+ jobs:
39
+ unit-test:
40
+ name: Unit tests
41
+ runs-on: blacksmith-4vcpu-ubuntu-2204
42
+ env:
43
+ TURBO_FORCE: ${{ inputs.ignoreTurboCache }}
44
+ COVERAGE_ENABLED: ${{ inputs.collectCoverage }}
45
+ steps:
46
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47
+ with:
48
+ ref: ${{ inputs.ref }}
49
+
50
+ - name: Use Node.js ${{ inputs.nodeVersion }}
51
+ uses: useblacksmith/setup-node@65c6ca86fdeb0ab3d85e78f57e4f6a7e4780b391 # v5.0.4
52
+ with:
53
+ node-version: ${{ inputs.nodeVersion }}
54
+
55
+ - name: Setup corepack and pnpm
56
+ run: |
57
+ npm i -g corepack@0.31
58
+ corepack enable
59
+
60
+ - name: Install dependencies
61
+ run: pnpm install --frozen-lockfile
62
+
63
+ - name: Setup build cache
64
+ uses: useblacksmith/caching-for-turbo@bafb57e7ebdbf1185762286ec94d24648cd3938a # v1
65
+
66
+ - name: Build
67
+ if: ${{ inputs.cacheKey == '' }}
68
+ run: pnpm build
69
+
70
+ - name: Restore cached build artifacts
71
+ if: ${{ inputs.cacheKey != '' }}
72
+ uses: useblacksmith/cache/restore@c5fe29eb0efdf1cf4186b9f7fcbbcbc0cf025662 # v5.0.2
73
+ with:
74
+ path: ./packages/**/dist
75
+ key: ${{ inputs.cacheKey }}
76
+ fail-on-cache-miss: true
77
+
78
+ - name: Test Backend
79
+ run: pnpm test:backend
80
+
81
+ - name: Test Nodes
82
+ run: pnpm test:nodes
83
+
84
+ - name: Test Frontend
85
+ if: ${{ !inputs.skipFrontendTests }}
86
+ run: pnpm test:frontend
87
+
88
+ - name: Upload test results to Codecov
89
+ if: ${{ !cancelled() }} # Run even if tests fail
90
+ uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
91
+ with:
92
+ token: ${{ secrets.CODECOV_TOKEN }}
93
+
94
+ - name: Upload coverage to Codecov
95
+ if: inputs.collectCoverage
96
+ uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
97
+ with:
98
+ token: ${{ secrets.CODECOV_TOKEN }}
.gitignore ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ node_modules
2
+ .DS_Store
3
+ .tmp
4
+ tmp
5
+ dist
6
+ coverage
7
+ npm-debug.log*
8
+ yarn.lock
9
+ google-generated-credentials.json
10
+ _START_PACKAGE
11
+ .env
12
+ .vscode/*
13
+ !.vscode/extensions.json
14
+ !.vscode/settings.default.json
15
+ .idea
16
+ nodelinter.config.json
17
+ **/package-lock.json
18
+ packages/**/.turbo
19
+ .turbo
20
+ *.tsbuildinfo
21
+ *.swp
22
+ CHANGELOG-*.md
23
+ *.mdx
24
+ build-storybook.log
25
+ *.junit.xml
26
+ junit.xml
27
+ test-results.json
28
+ *.0x
.npmignore ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dist/test
2
+ dist/**/*.{js.map}
3
+
4
+ .DS_Store
5
+
6
+ # local env files
7
+ .env.local
8
+ .env.*.local
9
+
10
+ # Log files
11
+ yarn-debug.log*
12
+ yarn-error.log*
13
+
14
+ # Editor directories and files
15
+ .idea
16
+ .vscode
17
+ *.suo
18
+ *.ntvs*
19
+ *.njsproj
20
+ *.sln
21
+ *.sw*
22
+
23
+ .editorconfig
24
+ .eslintrc.js
25
+ tsconfig.json
26
+
27
+ .turbo
28
+ *.tsbuildinfo
.npmrc ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ audit = false
2
+ fund = false
3
+ update-notifier = false
4
+ auto-install-peers = true
5
+ strict-peer-dependencies = false
6
+ prefer-workspace-packages = true
7
+ link-workspace-packages = deep
8
+ hoist = true
9
+ shamefully-hoist = true
10
+ hoist-workspace-packages = false
11
+ loglevel = warn
12
+ package-manager-strict=false
13
+ # https://github.com/pnpm/pnpm/issues/7024
14
+ package-import-method=clone-or-copy