-
Notifications
You must be signed in to change notification settings - Fork 16
chore: keep preview plg when merging release-please pr's #1312
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request updates the GitHub Actions workflow to handle both production and preview plugin builds based on the release status. When a release is created, the workflow sets the Changes
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
This plugin has been deployed to Cloudflare R2 and is available for testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (2)
.github/workflows/main.yml (2)
388-393: Production Plugin Build: Verify the Move Command
The production build branch is well structured: setting theBASE_URLto the production endpoint, running the build, and then moving the generated assets from./deployto./deploy-prodisolates production artifacts. Consider adding error handling (or checking that themvcommand succeeds) to prevent unnoticed failures if the move does not work as expected.
401-410: Preview Plugin Files Verification
Listing the contents of the./deploydirectory before checking for.plgand.txzfiles is a useful debugging step. The conditional checks help ensure that the preview plugin files exist as expected.Note: Ensure that the glob pattern
[ ! -f ./deploy/*.plg ]works as expected in your shell; in some cases, it might be beneficial to verify via an alternative method if multiple files are expected.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/main.yml(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Cloudflare Pages
🔇 Additional comments (2)
.github/workflows/main.yml (2)
395-398: Preview Plugin Build: Clear Separation of Build Processes
Re-running the build with the previewBASE_URLafter moving the production build ensures both builds are generated independently. The logic is clear and meets the objective of keeping preview builds available when merging release-please PRs.
450-453: Upload Release Assets from Production Build
Uploading the release assets fromdeploy-prodensures that only the production plugin files are released. This change aligns with the intended workflow where production artifacts are preserved separately from preview builds.
Summary by CodeRabbit