Skip to content

fix(release): correct create-post import and output paths #263

Description

@sameerchore

Which area is affected?

Build tooling (scripts, plugins)

Bug description

The release script in scripts/release/create-post.mjs used incorrect relative paths.

Tt could not find the shared fetch.mjs utility and failed with ERR_MODULE_NOT_FOUND.
Its output path also pointed outside the project, so the generated blog post failed with an ENOENT error.

After correcting the paths, the script can load the fetch utility and write generated release posts to pages/blog/posts/ inside the project.

File affected: scripts/release/create-post.mjs

Steps to reproduce

  1. Run: node scripts/release/create-post.mjs "$TAG" --author="$AUTHOR"
  2. The script fails because of incorrect relative paths in scripts/release/create-post.mjs.

Expected behavior

The release script should load the fetch utility and create the generated post in pages/blog/posts/.

Environment

OS: Linux Node.js: v24.19.0 npm: 11.17.0

Have you used AI?

No

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions