gitflow-action icon indicating copy to clipboard operation
gitflow-action copied to clipboard

Missing index.js Error

Open jjkirby opened this issue 3 years ago • 3 comments

Running your latest Logerfo/[email protected]. I get this error when executing:

Run Logerfo/[email protected] with: github-token: *** release: test-13 release-regex: ^release/(.*) dev: develop master: main label: gitflow auto-merge: false require-merge: false Error: File not found: '/home/runner/work/_actions/Logerfo/gitflow-action/0.0.5/dist/index.js'

I did notice your main branch does not have the dist/index.js but release branch does?

jjkirby avatar Oct 10 '22 22:10 jjkirby

You're right, thank you for reporting. I messed up the release process. It's been a while... almost three years without releasing.
I pushed up to release and 0.0.5 again. Can you retry, please?

Logerfo avatar Oct 10 '22 23:10 Logerfo

Nope:

/home/runner/work/_actions/Logerfo/gitflow-action/0.0.5/dist/index.js:346 client = new github.GitHub(token); ^

TypeError: github.GitHub is not a constructor at Object.31 (/home/runner/work/_actions/Logerfo/gitflow-action/0.0.5/dist/index.js:346:14) at webpack_require (/home/runner/work/_actions/Logerfo/gitflow-action/0.0.5/dist/index.js:24:31) at startup (/home/runner/work/_actions/Logerfo/gitflow-action/0.0.5/dist/index.js:43:19) at /home/runner/work/_actions/Logerfo/gitflow-action/0.0.5/dist/index.js:47:18 at Object. (/home/runner/work/_actions/Logerfo/gitflow-action/0.0.5/dist/index.js:50:10) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)

jjkirby avatar Oct 10 '22 23:10 jjkirby

Hmm, seems like a breaking change at @actions/github. I've made a new change for both release and 0.0.5, but I'm currently without a testing environment, so your feedback is very welcome.

Logerfo avatar Oct 11 '22 14:10 Logerfo