Hi there!
I’m trying to run-a-separate-file for GitHub - actions/github-script: Write workflows scripting the GitHub API in JavaScript
And there’s a notice:

Note that because you can’t require things like the GitHub context or Actions Toolkit libraries, you’ll want to pass them as arguments to your external function.

How exactly would I do that?
I’m trying to use {{ secret.NAME }} and {{ steps.STEPNAME.outputs.stdout }} context inside my script
And actions throwing a SyntaxError: Unexcpected token '.'

What should I pass with action itself and how exactly I should change my js code?

also, can I pass const script = require(${process.env.GITHUB_WORKSPACE}/path/to/script.js) an url to my js file? like const script = require( or something ?