-
Notifications
You must be signed in to change notification settings - Fork 2
ci: push-model publish to CBWeb internal marketplace W-21525556 #264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
239711b
6940508
3191b67
cc77e8b
52fb63a
9b25c61
7866163
9fbdbb8
d1d0669
dbf38a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,13 +88,35 @@ jobs: | |
| npm run package:packages | ||
| fi | ||
|
|
||
| - name: Package web-only VSIX | ||
| working-directory: packages/apex-lsp-vscode-extension | ||
| run: | | ||
| if [ "${{ inputs.pre-release }}" = "true" ]; then | ||
| npx vsce package --target web --no-dependencies --pre-release | ||
peternhale marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| else | ||
| npx vsce package --target web --no-dependencies | ||
| fi | ||
|
|
||
| WEB_VSIX=$(find . -maxdepth 1 -name "*-web-*.vsix" | head -1) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this simply results of package:packages.vsix.size() - web.vsix.siae()?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's just getting the web vsix name. No size calc.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The line I commented on, ok, but what follows seems relevant to my comment, yes?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, now I see what you're saying, the calculation in the echo statement. Yes, essentially that is what the difference is. The statement itself is just window dressing so if you want I can remove it as well? |
||
| if [ -n "$WEB_VSIX" ]; then | ||
| BEFORE_SIZE=$(stat -c%s "$WEB_VSIX" 2>/dev/null || stat -f%z "$WEB_VSIX" 2>/dev/null) | ||
| zip -d "$WEB_VSIX" \ | ||
| "extension/dist/extension.js" \ | ||
| "extension/dist/server.node.js" \ | ||
| "extension/dist/*.map" \ | ||
| "extension/dist/webview/*.map" \ | ||
| 2>/dev/null || true | ||
| AFTER_SIZE=$(stat -c%s "$WEB_VSIX" 2>/dev/null || stat -f%z "$WEB_VSIX" 2>/dev/null) | ||
| echo "Optimized web VSIX: ${BEFORE_SIZE} -> ${AFTER_SIZE} bytes" | ||
| fi | ||
|
|
||
| - name: Generate MD5 checksums | ||
| id: md5-checksums | ||
| run: | | ||
| echo "Generating MD5 checksums for VSIX files..." | ||
|
|
||
| # Find all VSIX files and generate MD5 checksums | ||
| VSIX_FILES=$(find packages -name "*.vsix" -type f) | ||
| # Find non-web VSIX files and generate MD5 checksums | ||
| VSIX_FILES=$(find packages -name "*.vsix" -type f ! -name "*-web-*") | ||
|
|
||
| if [ -z "$VSIX_FILES" ]; then | ||
| echo "No VSIX files found to generate checksums for" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.