Skip to content

Move action.yml to repo root for Marketplace eligibility - #12

Merged
dakshcodez merged 2 commits into
mainfrom
action-yml-to-root
Aug 15, 2026
Merged

Move action.yml to repo root for Marketplace eligibility#12
dakshcodez merged 2 commits into
mainfrom
action-yml-to-root

Conversation

@dakshcodez

Copy link
Copy Markdown
Owner

Summary

GitHub Marketplace only discovers and lists an action whose action.yml sits at the repository root - our copy at packages/action/action.yml (matching the monorepo layout) is valid for anyone referencing it via uses: owner/repo/path@ref, but would never show up as listable on the Marketplace itself.

Moved action.yml to the root, updated runs.main from 'dist/index.js' to 'packages/action/dist/index.js' since the path is now resolved relative to the repo root instead of the old subdirectory. The actual implementation stays under packages/action/ unchanged - only the metadata file's location and that one path string moved.

Test plan

  • npm run lint / typecheck / build all pass
  • Confirmed no other file referenced the old packages/action/action.yml path
  • runs.main path verified correct against standard GitHub Actions convention (path always relative to the directory containing action.yml)

GitHub Marketplace only discovers and lists an action whose
action.yml sits at the repository root - a subdirectory copy (where
ours lived, packages/action/action.yml, matching the monorepo's
package layout) is valid for consumers who reference it via
"uses: owner/repo/path@ref", but never shows up as listable on the
Marketplace itself.

Moved it to the root and updated runs.main from 'dist/index.js' to
'packages/action/dist/index.js', since the path is now resolved
relative to the action's root (the repo root), not the subdirectory
action.yml used to live in. The actual implementation stays under
packages/action/ unchanged - only the metadata file's location and
that one path moved.

No other file referenced the old subdirectory path. Verified
lint/typecheck/build all still pass.
The previous commit's git add invocation silently failed (passed a
second pathspec, packages/action/action.yml, that no longer existed
after the git mv, which aborted the whole add without adding
anything) - so the actual path fix in the working tree never made it
into the commit, even though it had already been applied and
verified locally. Committing the real fix now: runs.main needs to be
'packages/action/dist/index.js', not the old 'dist/index.js', now
that action.yml lives at the repo root instead of packages/action/.
@dakshcodez
dakshcodez merged commit 749f7d6 into main Aug 15, 2026
1 check passed
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