Hi i am writing a step in nodejs. I tried this on my bitrise.yml but it doesn’t work.
workflows:
test:
steps:
- script@1.1.3:
inputs:
- runner_bin: node
- content: “wetransfertupload.js ${WTU_FILEPATH}”
With the error :
private/var/folders/3x/j28tdpd128s57w0qwpz16d440000gq/T/bitrise875221030/step_src/._script_cont:1
(function (exports, require, module, __filename, __dirname) { wetransfertupload.js ${WTU_FILEPATH}
^
SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Object.Module._extensions…js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
How to run an external files in nodejs ? Pleeeeeeease. Thanks by advance.
