Skip to content

fix(ci): avoid workspace: protocol error in publish-agentflow workflow#5946

Merged
jocelynlin-wd merged 3 commits intomainfrom
fix/publish-agentflow-workspace-protocol
Mar 11, 2026
Merged

fix(ci): avoid workspace: protocol error in publish-agentflow workflow#5946
jocelynlin-wd merged 3 commits intomainfrom
fix/publish-agentflow-workspace-protocol

Conversation

@jocelynlin-wd
Copy link
Contributor

@jocelynlin-wd jocelynlin-wd commented Mar 11, 2026

Fix an issue in a test run https://github.com/FlowiseAI/Flowise/actions/runs/22929422859/job/66547466870

Summary

  • Use working-directory: packages/agentflow with plain npm version instead of pnpm --filter exec npm version, which exposed npm to pnpm's workspace: protocol and caused EUNSUPPORTEDPROTOCOL errors
  • Use pnpm pack instead of pnpm exec npm pack for the same reason
  • Sort dependencies and peerDependencies alphabetically in packages/agentflow/package.json to prevent future diff noise from npm tooling

Test plan

  • Run the publish workflow with bump=prerelease and tag=dev and verify the "Set version" step succeeds
  • Verify the dry-run publish completes without errors

Test dry-run with updated script: https://github.com/FlowiseAI/Flowise/actions/runs/22932158208/job/66555843045 (the job is rejected manually to avoid publishing to npm)

🤖 Generated with Claude Code

Use working-directory instead of pnpm exec for npm version, and
pnpm pack instead of pnpm exec npm pack, to avoid npm encountering
pnpm's workspace: protocol. Sort deps alphabetically in package.json
to prevent future noise from npm tooling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request resolves critical CI issues within the publish-agentflow workflow that were preventing successful package publishing due to workspace: protocol errors. The changes streamline the package management commands and improve consistency in dependency declarations, ensuring a more robust and predictable build process.

Highlights

  • CI Workflow Fix: Addressed EUNSUPPORTEDPROTOCOL errors in the publish-agentflow workflow by modifying how npm version and npm pack commands are executed. The workflow now uses working-directory: packages/agentflow with plain npm version and pnpm pack directly, avoiding pnpm --filter exec which exposed npm to pnpm's workspace: protocol.
  • Dependency Sorting: Alphabetically sorted dependencies and peerDependencies in packages/agentflow/package.json to reduce future diff noise caused by inconsistent ordering from npm tooling.
Changelog
  • packages/agentflow/package.json
    • Sorted peerDependencies alphabetically
    • Sorted dependencies alphabetically
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/publish-agentflow.yml
Activity
  • The author, jocelynlin-wd, has outlined a test plan to verify the fix by running the publish workflow with bump=prerelease and tag=dev and checking for successful version setting and error-free dry-run publishes.
  • The pull request was generated with Claude Code.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@jocelynlin-wd jocelynlin-wd requested a review from mmattu-wd March 11, 2026 00:26
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request addresses a CI issue related to the workspace: protocol in pnpm. The provided change sorts the dependencies and peerDependencies in packages/agentflow/package.json alphabetically. This is a good housekeeping measure that improves maintainability and helps avoid future diff noise. The change is correct and I have no further comments.

Note: Security Review has been skipped due to the limited scope of the PR.

jocelynlin-wd and others added 2 commits March 10, 2026 17:36
npm version and pnpm version both fail in this monorepo because they
resolve the full dependency tree and choke on pnpm's workspace: protocol.
Replace with npx semver (compute version) + npm pkg set (write version).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jocelynlin-wd jocelynlin-wd merged commit 08e6a79 into main Mar 11, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants