From 327e764d85f53153dc18f053a110e5c9007aa63d Mon Sep 17 00:00:00 2001 From: cte Date: Thu, 6 Feb 2025 08:38:31 -0800 Subject: [PATCH 1/2] Validate vsix in publish GHA --- .github/workflows/marketplace-publish.yml | 9 ++++++++- .vscodeignore | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/marketplace-publish.yml b/.github/workflows/marketplace-publish.yml index 10133a24ed..561282dd7f 100644 --- a/.github/workflows/marketplace-publish.yml +++ b/.github/workflows/marketplace-publish.yml @@ -39,6 +39,13 @@ jobs: OVSX_PAT: ${{ secrets.OVSX_PAT }} run: | current_package_version=$(node -p "require('./package.json').version") + + npm run vsix + package=$(unzip -l bin/roo-cline-${current_package_version}.vsix) + echo $package + echo $package | grep -q "dist/extension.js" || exit 1 + echo $package | grep -q "extension/webview-ui/build/assets/index.js" || exit 1 + echo $package | grep -q "extension/node_modules/@vscode/codicons/dist/codicon.ttf" || exit 1 + npm run publish:marketplace echo "Successfully published version $current_package_version to VS Code Marketplace" - diff --git a/.vscodeignore b/.vscodeignore index b2518f8b7b..19d2ddfe36 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,4 +1,6 @@ # Default +.github/** +.husky/** .vscode/** .vscode-test/** out/** From 36dd8c9ce41db0077e30c0faa8881d654b4482fe Mon Sep 17 00:00:00 2001 From: cte Date: Thu, 6 Feb 2025 08:53:21 -0800 Subject: [PATCH 2/2] PR feedback --- .github/workflows/marketplace-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/marketplace-publish.yml b/.github/workflows/marketplace-publish.yml index 561282dd7f..fcc089c1db 100644 --- a/.github/workflows/marketplace-publish.yml +++ b/.github/workflows/marketplace-publish.yml @@ -42,10 +42,10 @@ jobs: npm run vsix package=$(unzip -l bin/roo-cline-${current_package_version}.vsix) - echo $package - echo $package | grep -q "dist/extension.js" || exit 1 - echo $package | grep -q "extension/webview-ui/build/assets/index.js" || exit 1 - echo $package | grep -q "extension/node_modules/@vscode/codicons/dist/codicon.ttf" || exit 1 + echo "$package" + echo "$package" | grep -q "dist/extension.js" || exit 1 + echo "$package" | grep -q "extension/webview-ui/build/assets/index.js" || exit 1 + echo "$package" | grep -q "extension/node_modules/@vscode/codicons/dist/codicon.ttf" || exit 1 npm run publish:marketplace echo "Successfully published version $current_package_version to VS Code Marketplace"