How execute .sh file on windows?

Hi, I have encountered a problem and for a long time do not understand how to fix it.
I have npm scripts:

"scripts": {
    "build": "./bin/",
    "pretest": "cross-env NODE_ENV=test ./bin/"



vite build --config ./config/main.vite.js

In github action i run step:

- run: npm run build

And get error:

Run npm run build
  npm run build
  shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}

> vite-electron-builder@20.12.16 build D:\a\vite-electron-builder\vite-electron-builder
> ./bin/

'.' is not recognized as an internal or external command,
operable program or batch file.

Default shell is bash:

    shell: 'bash'

I do not understand why the command “build” does not work, while the command “pretest” which also starts in Windows works correctly.

Full workflow can be fount here.