feat(workflow): add GitHub Actions workflow for publishing agentflow sdk#5908
feat(workflow): add GitHub Actions workflow for publishing agentflow sdk#5908jocelynlin-wd merged 4 commits intomainfrom
Conversation
…/agentflow - Introduced a new workflow to handle version bumps and publishing of the @flowiseai/agentflow package. - Supports various version bump types (prerelease, patch, minor, major, custom) and allows for custom version input. - Includes a dry-run step to validate the version and simulate the publish process before actual deployment. - Configured to use pnpm for dependency management and publishing tasks.
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
- Changed permissions for the GitHub Actions workflow to allow write access for contents. - Added a step to commit and push the version bump for the @flowiseai/agentflow package after publishing.
mmattu-wd
left a comment
There was a problem hiding this comment.
small things but looks good to give a test run
| - major | ||
| - custom | ||
| custom_version: | ||
| description: 'Custom version (only used when bump is "custom", e.g. 1.0.0-beta.1)' |
There was a problem hiding this comment.
is there a risk with how we accept a string value for custom version that is interpolated directly into the shell below?
There was a problem hiding this comment.
Shell injection fix — all ${{ inputs.custom_version }} and ${{ inputs.bump }} are now passed via env: blocks and referenced as $CUSTOM_VERSION /
- Added permission for pull-requests in the GitHub Actions workflow. - Modified the version bump step to create a new branch and open a pull request after committing the version bump for the @flowiseai/agentflow package.
| runs-on: ubuntu-latest | ||
| environment: npm-publish | ||
| permissions: | ||
| contents: write |
There was a problem hiding this comment.
this is for PR creation, will review if we really want PR creation since it will require us to either give github actions write permission to the repo or use a fine-grained PAT for the PR creation job.
Workflow Flow
Inputs
bumpprereleaseprerelease,patch,minor,major,customcustom_versioncustom)tagdevdevorlatest