Skip to content

[P3][ci] Verify release tag matches package.json version before publish #41

Description

@cevheri

Summary

publish.yml does not verify that GitHub Release tag matches package.json version before publishing — mismatched release could ship wrong semver.

Audit ID: Section 4 Low — Wave 3
Location: .github/workflows/publish.yml:141 area

Fix

Add step before publish:

TAG="${GITHUB_REF_NAME#v}"
PKG="$(node -p 'require("./package.json").version')"
test "$TAG" = "$PKG" || { echo "Tag $TAG != package.json $PKG"; exit 1; }

Handle v prefix convention consistently with existing releases.

Acceptance criteria

  • Mismatch fails workflow loudly.
  • No changeset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ciPre-announcement auditpriority/lowPre-announcement audit

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions