Skip to content

fix #65 - feat: create a package.json validation CI#99

Merged
ricardozanini merged 3 commits intoserverlessworkflow:mainfrom
fantonangeli:issue-65-feat-create-a-package.json-validation-CI
Apr 17, 2026
Merged

fix #65 - feat: create a package.json validation CI#99
ricardozanini merged 3 commits intoserverlessworkflow:mainfrom
fantonangeli:issue-65-feat-create-a-package.json-validation-CI

Conversation

@fantonangeli
Copy link
Copy Markdown
Member

@fantonangeli fantonangeli commented Apr 16, 2026

Closes #65

Description

Add a package.json validation CI to enforce that versions and license fields are the same across packages.

Motivation

Check that our package.json files have the right values, following our standard.

Proposed Implementation

Using pnpm exec+node. syncpack has an issue checking local versions. jq works well but can be missed in Win

Preview:

Expected CI failures:

Green CI, after package.json fix:

Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI review requested due to automatic review settings April 16, 2026 15:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds CI validation to enforce consistent package.json metadata (versions/licenses) across the monorepo’s workspace packages.

Changes:

  • Adds Node + pnpm setup and a license-field check to the license headers workflow.
  • Adds a version-field check to the build workflow before install/build steps.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/ci_check_license_headers.yaml Adds Node/pnpm setup and validates package.json license values across workspaces.
.github/workflows/ci_build.yaml Adds a recursive check intended to validate workspace package versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci_build.yaml
Comment thread .github/workflows/ci_check_license_headers.yaml
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI review requested due to automatic review settings April 16, 2026 16:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds CI validation to enforce consistent package.json metadata across workspace packages (version and license), aligning with the repo’s standard for monorepo package manifests.

Changes:

  • Enforce all workspace package versions are 0.0.0 during the build workflow.
  • Enforce all workspace package licenses are Apache-2.0 during the license-headers workflow.
  • Align @serverlessworkflow/i18n’s package.json metadata (version/license/repository/etc.) with the standard.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/i18n/package.json Standardizes package metadata (version/license/repo fields) to match monorepo expectations.
.github/workflows/ci_build.yaml Adds a CI step to validate workspace package versions.
.github/workflows/ci_check_license_headers.yaml Adds a CI step to validate workspace package licenses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci_check_license_headers.yaml
Comment thread .github/workflows/ci_build.yaml
Copy link
Copy Markdown
Contributor

@kumaradityaraj kumaradityaraj left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@lornakelly lornakelly left a comment

Choose a reason for hiding this comment

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

LGTM

@ricardozanini ricardozanini merged commit 8bbc474 into serverlessworkflow:main Apr 17, 2026
8 of 9 checks passed
@fantonangeli fantonangeli deleted the issue-65-feat-create-a-package.json-validation-CI branch April 17, 2026 15:46
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.

feat: create a package.json validation CI

5 participants