Skip to content

fix: per-package publish workflows and v* tag format#40

Merged
brenonovelli merged 1 commit into
mainfrom
feat/fix-publish-workflow
Jun 13, 2026
Merged

fix: per-package publish workflows and v* tag format#40
brenonovelli merged 1 commit into
mainfrom
feat/fix-publish-workflow

Conversation

@brenonovelli

Copy link
Copy Markdown
Collaborator

Summary

  • Root cause fixed: DK webhook processor rejects tags that aren't pure semver — ads-react-v0.5.1 returned HTTP 500 ("Invalid source refs/tags/ads-react-v0.5.1"). Tag format is now v0.5.2.
  • Two separate workflows: publish-core.yml and publish-react.yml replace the single publish-npm.yml. Each reads the version from its own package.json (no more tag parsing).
  • deployment.yaml: two npm-publish-v1 pipelines (one per package via contextPath), tag regex updated to ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9.-]+)?$.
  • ads-react bumped to 0.5.2 to stay in sync with ads-core (both packages always stay at the same version going forward).

Release flow after merging

git checkout main && git pull
git tag v0.5.2
git push origin v0.5.2

DK triggers both pipelines → CodeArtifact → GitHub Actions auto-triggered → npmjs.

NPM Trusted Publishers (one-time setup if not done yet)

  • @vtex/ads-react needs publish-react.yml added on npmjs.com (previously only publish-npm.yml was registered)
  • @vtex/ads-core needs publish-core.yml updated if publish-npm.yml was registered

Test plan

  • Merge this PR
  • Push tag v0.5.2 — confirm DK processes it with HTTP 200 (not 500)
  • Confirm two DK Check Runs appear (one per package)
  • Confirm two GitHub Actions runs triggered (publish-core.yml, publish-react.yml)
  • Confirm @vtex/ads-core@0.5.2 and @vtex/ads-react@0.5.2 published to npm

🤖 Generated with Claude Code

…ws and v* tag format

DK webhook processor rejects tags that aren't pure semver (e.g. `ads-react-v0.5.1`
returned HTTP 500). Switch to `v*` tag format and split into two npm-publish-v1
pipelines (one per package via contextPath). Each workflow reads its version from
package.json instead of parsing the tag name.

- Add publish-core.yml and publish-react.yml (replace publish-npm.yml)
- Update deployment.yaml: two npm-publish-v1 pipelines + v* tag regex
- Bump ads-react to 0.5.2 to sync with ads-core
- Update README release docs to reflect new tag format and workflow split

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonar-workflows

Copy link
Copy Markdown

Failed Quality Gate failed

  • 69 New Issues (is greater than 0)
  • 0.00% Coverage on New Code (is less than 80.00%)
  • 0.00% Security Hotspots Reviewed on New Code (is less than 100.00%)

Project ID: ads-js

View in SonarQube

@brenonovelli brenonovelli merged commit 8676eb0 into main Jun 13, 2026
6 of 7 checks passed
@brenonovelli brenonovelli mentioned this pull request Jun 13, 2026
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.

1 participant