ci: Fix docker builds for releases (#7865)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-11-29 15:25:50 +01:00 committed by GitHub
parent 5207a2fe52
commit d5762a7539
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 327 additions and 593 deletions

View file

@ -16,6 +16,7 @@ RUN set -eux; \
case "$apkArch" in \
'armv7') apk del build-dependencies;; \
esac && \
rm -rf /usr/local/lib/node_modules/n8n/node_modules/@n8n/chat && \
rm -rf /usr/local/lib/node_modules/n8n/node_modules/n8n-design-system && \
rm -rf /usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/node_modules && \
find /usr/local/lib/node_modules/n8n -type f -name "*.ts" -o -name "*.js.map" -o -name "*.vue" | xargs rm && \

View file

@ -102,9 +102,6 @@
"dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js"
]
},
"peerDependencies": {
"@n8n/vm2": "^3.9.20"
},
"devDependencies": {
"@types/express": "^4.17.6",
"@types/html-to-text": "^9.0.1",
@ -116,37 +113,38 @@
"n8n-core": "workspace:*"
},
"dependencies": {
"@aws-sdk/client-bedrock-runtime": "^3.422.0",
"@getzep/zep-js": "^0.7.1",
"@google-ai/generativelanguage": "^0.2.1",
"@gxl/epub-parser": "^2.0.4",
"@huggingface/inference": "^2.6.4",
"@pinecone-database/pinecone": "^1.1.0",
"@supabase/supabase-js": "^2.33.2",
"@aws-sdk/client-bedrock-runtime": "3.454.0",
"@getzep/zep-js": "0.9.0",
"@google-ai/generativelanguage": "0.2.1",
"@gxl/epub-parser": "2.0.4",
"@huggingface/inference": "2.6.4",
"@n8n/vm2": "3.9.20",
"@pinecone-database/pinecone": "1.1.2",
"@supabase/supabase-js": "2.38.5",
"@tensorflow-models/universal-sentence-encoder": "1.3.3",
"@tensorflow/tfjs-backend-cpu": "^4.11.0",
"@tensorflow/tfjs-backend-cpu": "4.11.0",
"@tensorflow/tfjs-converter": "4.11.0",
"@tensorflow/tfjs-core": "4.11.0",
"@tensorflow/tfjs-node": "^4.11.0",
"@xata.io/client": "^0.25.1",
"cohere-ai": "^6.2.2",
"d3-dsv": "^3.0.1",
"html-to-text": "^9.0.5",
"json-schema-to-zod": "^1.1.1",
"langchain": "^0.0.195",
"lodash": "^4.17.21",
"mammoth": "^1.6.0",
"mssql": "^8.1.2",
"@tensorflow/tfjs-node": "4.11.0",
"@xata.io/client": "0.25.3",
"cohere-ai": "6.2.2",
"d3-dsv": "2.0.0",
"html-to-text": "9.0.5",
"json-schema-to-zod": "1.2.0",
"langchain": "0.0.198",
"lodash": "4.17.21",
"mammoth": "1.6.0",
"mssql": "9.1.1",
"n8n-nodes-base": "workspace:*",
"n8n-workflow": "workspace:*",
"openai": "^4.19.0",
"pdf-parse": "^1.1.1",
"pg": "^8.11.3",
"redis": "^4.6.8",
"sqlite3": "^5.1.6",
"temp": "^0.9.4",
"typeorm": "^0.3.17",
"zod": "^3.22.2",
"zod-to-json-schema": "^3.22.0"
"openai": "4.20.0",
"pdf-parse": "1.1.1",
"pg": "8.11.3",
"redis": "4.6.11",
"sqlite3": "5.1.6",
"temp": "0.9.4",
"typeorm": "0.3.17",
"zod": "3.22.4",
"zod-to-json-schema": "3.22.0"
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,12 +1,15 @@
const { writeFileSync } = require('fs')
const { writeFileSync } = require('fs');
const { resolve } = require('path');
const baseDir = resolve(__dirname, '..');
const trimPackageJson = (packageName) => {
const filePath = resolve(baseDir, 'packages', packageName, 'package.json');
const { scripts, peerDependencies, devDependencies, dependencies, ...packageJson } = require(filePath);
const { scripts, peerDependencies, devDependencies, dependencies, ...packageJson } = require(
filePath,
);
writeFileSync(filePath, JSON.stringify(packageJson, null, 2) + '\n', 'utf-8');
}
};
trimPackageJson('design-system')
trimPackageJson('editor-ui')
trimPackageJson('@n8n/chat');
trimPackageJson('design-system');
trimPackageJson('editor-ui');