From f4759fb36a5e98e0cce46cbc68537b23c383789e Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Fri, 23 Feb 2024 01:33:26 +0100 Subject: [PATCH] ci(linux): keep extensions node_modules [skip ci] --- .github/workflows/insider-linux.yml | 4 ++-- .github/workflows/stable-linux.yml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index 6837174..dfe6026 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -103,8 +103,8 @@ jobs: - name: Compress vscode artifact run: | - find vscode -type f -not -path "*/node_modules" -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt - find vscode/.build/extensions/node_modules -type f >> vscode.txt + find vscode -type f -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt + echo "vscode/.build/extensions/node_modules" >> vscode.txt echo "vscode/.git" >> vscode.txt tar -czf vscode.tar.gz -T vscode.txt diff --git a/.github/workflows/stable-linux.yml b/.github/workflows/stable-linux.yml index f99ca87..37f406f 100644 --- a/.github/workflows/stable-linux.yml +++ b/.github/workflows/stable-linux.yml @@ -107,7 +107,10 @@ jobs: - name: Compress vscode artifact run: | - tar -cz --exclude='.build/node' --exclude='**/node_modules' -f vscode.tar.gz vscode + find vscode -type f -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt + echo "vscode/.build/extensions/node_modules" >> vscode.txt + echo "vscode/.git" >> vscode.txt + tar -czf vscode.tar.gz -T vscode.txt - name: Upload vscode artifact uses: actions/upload-artifact@v3