How to specify latest version for dependency from auth0-deploy-cli

I’m using Github Actions and the deploy-cli to automate creating and updating actions in my Auth0 tenant. How can I specify the latest version of a dependency, similar to when creating an action manually through the dashboard.

My tenant.yaml file

- name: Dependency Action
      code: ./actions/Dependency Action/code.js
      dependencies:
          - name: ipaddr.js
          - version: latest
      deployed: false
      runtime: node16
      secrets: []
      status: built
      supported_triggers:
          - id: post-login
            version: v2

Doing the above returns an error in Github actions, with an invalid version.

Hi @zaki.machfj,

Thanks for reaching out to the Auth0 Community!

In your tenant.yaml file, you will need to specify the version number of the dependency. For example:

- name: Dependency Action
      code: ./actions/Dependency Action/code.js
      dependencies:
          - name: ipaddr.js
          - version: 1.9.0
      deployed: false
      runtime: node16
      secrets: []
      status: built
      supported_triggers:
          - id: post-login
            version: v2

At this time, version 1.9.0 is the latest version we offer for the ipaddr package. See here for details.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.