Skip to content

[devops] Update GHA ci for release workflow#2860

Open
mwaiyee wants to merge 4 commits into
developfrom
mwaiyee/ci-release-workflow
Open

[devops] Update GHA ci for release workflow#2860
mwaiyee wants to merge 4 commits into
developfrom
mwaiyee/ci-release-workflow

Conversation

@mwaiyee

@mwaiyee mwaiyee commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator
  • Updating ci workflow when using workflow dispatch for artifact release

Merge Checklist

Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.

  • Automated Tests (Jasmine integration tests, Unit tests, and/or Performance tests)
  • Updated Manual tests / Demo Config
  • Documentation (Application guide, Admin guide, Markdown, Readme and/or Wiki)
  • Verified that local development environment is working with latest changes (integrated with latest develop branch)
  • following best practices in code review doc

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the docker-build-push GitHub Actions workflow to better support manual, workflow-dispatch-driven releases by allowing operators to provide a release tag and select which NPM artifact feed to target.

Changes:

  • Adds workflow_dispatch inputs (release_tag, artifacttype) and threads a new plugins_tag output through the workflow.
  • Updates plugin package versioning logic to set an explicit release version during workflow-dispatch runs.
  • Adds conditional Node/registry setup to publish to either the “develop” or “stable” Azure Artifacts NPM registry.

Comment on lines 87 to +89
IS_RELEASE_PUSH=true
CANONICAL_TAG="${REL_SLUG}"
CANONICAL_TAG=""
PLUGINS_TAG=""

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

changed to REL_SLUG for CANONICAL_TAG (eg release-v0.16.0-beta)

Comment on lines +363 to +368
if [[ $GITHUB_EVENT_NAME == 'workflow_dispatch' ]]; then
RELEASE_VERSION=${{ needs.setup.outputs.plugins_tag }}
jq --arg v $RELEASE_VERSION '.version=$v' package.json > tmppkg; mv tmppkg package.json
else
jq --arg v "-$(date +%s)-$GITHUB_SHA" '.version+=$v' package.json > tmppkg; mv tmppkg package.json
fi
Comment on lines +415 to +418
with:
node-version: "18.x"
registry-url: "https://pkgs.dev.azure.com/data2evidence/d2e/_packaging/stable/npm/registry/"
scope: "@data2evidence"
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.

2 participants