Skip to content

NPM package creation errors #535

@wexxlee

Description

@wexxlee

Description

Release workflow step to create the cactbot npm package is failing

Additional Details / Steps to Reproduce

This seems to be caused by the recent merge of #271. When we version bump and the release workflow runs, the create_npm_package step fails. See, e.g.: https://github.com/OverlayPlugin/cactbot/actions/runs/12214469553/job/34075329007

For reference, here is the error log:

Run node .github/scripts/npm-package.cjs
  node .github/scripts/npm-package.cjs
  shell: /usr/bin/bash -e {0}
/opt/hostedtoolcache/node/[2](https://github.com/OverlayPlugin/cactbot/actions/runs/12214469553/job/34075329007#step:4:2)0.18.1/x64/bin/npx tsc --declaration
node:fs:10[3](https://github.com/OverlayPlugin/cactbot/actions/runs/12214469553/job/34075329007#step:4:3)2
  binding.rename(
          ^

Error: ENOENT: no such file or directory, rename 'dist/util' -> 'npm-package/util'
    at Object.renameSync (node:fs:1032:11)
    at main (/home/runner/work/cactbot/cactbot/.github/scripts/npm-package.cjs:27:6)
    at process.processTicksAndRejections (node:internal/process/task_queues:9[5](https://github.com/OverlayPlugin/cactbot/actions/runs/12214469553/job/34075329007#step:4:6):5) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'rename',
  path: 'dist/util',
  dest: 'npm-package/util'
}

Node.js v20.1[8](https://github.com/OverlayPlugin/cactbot/actions/runs/12214469553/job/34075329007#step:4:9).1

@MaikoTan, are you able to look at this?

Cactbot Module

Dev Tools / Internals

Configuration Info

N/A

Log & Screenshots

No response

Confirmation

  • I reviewed Common Issues and Workarounds and verified that my settings are correct.
  • I used the search function to confirm this issue doesn't already exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfix-meBug report validated or feature request planned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions