Skip to content

FLOWISE-460 add github action for publishing#363

Open
mmattu-wd wants to merge 3 commits intomainfrom
FLOWISE-460-create-publish-github-action
Open

FLOWISE-460 add github action for publishing#363
mmattu-wd wants to merge 3 commits intomainfrom
FLOWISE-460-create-publish-github-action

Conversation

@mmattu-wd
Copy link
Copy Markdown
Contributor

@mmattu-wd mmattu-wd commented Apr 7, 2026

FLOWISE-460

Creates a new publishing job that will handle updating the FlowiseChatEmbed and FlowiseReactEmbed packages.

Checkout the Readme to go over the process.

The job handles publishing the FlowiseChatEmbed package first then polls for the changes to propagate. Once they propagate then FlowiseReactEmbed is built and published with the latest version.

We could have had this be 2 separate actions 1 in each repo, but having them together means when/if we move repos this will make it much simpler to trim that job and just use the workspace version.

Copy link
Copy Markdown

@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 introduces a README documenting a new automated publishing workflow for flowise-embed and flowise-embed-react, along with an update to .npmignore to exclude the .github directory. Feedback indicates that the actual GitHub Actions workflow file described in the documentation is missing from the current changes. Additionally, there are concerns regarding the use of devDependencies for what appears to be a runtime dependency in the React package, and inconsistencies in the documentation regarding whether npm or yarn is the intended package manager.

@@ -0,0 +1,92 @@
# Publish Workflow
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The pull request description mentions the creation of a new publishing job, but the corresponding GitHub Actions workflow file (e.g., .github/workflows/publish.yml) is not included in the current changes. Please ensure the workflow file is added to the repository.


### Dependency update in FlowiseEmbedReact

The workflow sets `devDependencies.flowise-embed` to the exact new version using `npm pkg set`. This changes the specifier (e.g. from `"latest"` to `"3.1.3"`), which forces yarn to re-resolve from the registry and update `yarn.lock`. Both `package.json` and `yarn.lock` are committed back to the repo.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The documentation indicates that flowise-embed is updated within devDependencies for the FlowiseEmbedReact package. If flowise-embed-react is a wrapper that depends on flowise-embed at runtime, it should typically be listed under dependencies or peerDependencies. Using devDependencies may result in the dependency not being installed for end-users of the React package.


### Husky suppression

`HUSKY=0` is set during `yarn install` for FlowiseChatEmbed to prevent the `prepare` script (`husky install`) from failing in CI where there's no git hook context.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

There is an inconsistency regarding the package manager for FlowiseChatEmbed. While this line mentions yarn install, other parts of the documentation (lines 73, 77) and the file list for this repository (line 91, which omits yarn.lock) suggest that npm is used. Consider updating this for consistency.

@HenryHengZJ
Copy link
Copy Markdown
Contributor

create we test this out first on maybe like a cloned chatembed/react repos to npm?

@@ -0,0 +1,159 @@
# Publish Workflow
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I suggest we move this out of the workflow repo as this becomes more of an internal information for oss maintainers

(I also plan to remove the publish part of the README in agentflow sdk as they were added before we have github actions to outline the flow).

run: |
npm pkg set "version=${NEW_VERSION}"
npm pkg set "devDependencies.flowise-embed=${NEW_VERSION}"
yarn upgrade flowise-embed@${NEW_VERSION}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: quote this — yarn upgrade "flowise-embed@${NEW_VERSION}" — to be defensive against shell interpretation

.github
rollup.config.js
tailwind.config.cjs
tsconfig.json No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: add a trailing newline.

fi

- name: Checkout FlowiseChatEmbed
uses: actions/checkout@v4
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Minor: bump to actions/checkout@v6 and actions/setup-node@v6 or you will likely see below warnings:

Image

env:
VERSION: ${{ needs.dry-run.outputs.version }}
TAG: ${{ inputs.tag }}
GH_TOKEN: ${{ secrets.PAT_GITHUB }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Non-blocker: once these repos are consolidated into the monorepo, the PAT_GITHUB should be replaced with the built-in GITHUB_TOKEN since cross-repo access won't be needed anymore.

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