You can create a ZIP package that contains the Node.js script and dependencies used by your Cloud Assembly extensibility actions.
There are two methods of building the script for your extensibility actions:
- Writing your script directly in the extensibility action editor in Cloud Assembly.
- Creating your script in your local environment and adding it, with any relevant dependencies, to a ZIP package.
By using a ZIP package, you can create a custom preconfigured template of action scripts and dependencies that you can import to Cloud Assembly for use in extensibility actions.
Furthermore, you can use a ZIP package in scenarios where modules associated with dependencies in your action script cannot be resolved by the Cloud Assembly service, such as when your environment lacks Internet access.
Also, you can use packages to create extensibility actions that contain multiple Node.js script files. Using multiple script files can be useful for organizing the structure of your extensibility action code.