Skip to content

Use configuration variable to define the dappnodesdk version in the gha workflows #357

@pablomendezroyo

Description

@pablomendezroyo

Context
The current way of the gha workflows in the DAppNodePackages use by default the latest dappnodesdk version via the command npx @dappnode/dappnodesdk. This approach entails issues whenever a certain version is not stable and it may break the CI/CD in those packages using this tool.

Approach

  1. Create an organization configurable variable and use it in the workflows as an env, i.e:
    run: npx @dappnode/dappnodesdk@$DAPPNODE_SDK_VERSION
    env:
        ORGANIZATION_VAR: ${{ vars.ORGANIZATION_VAR }}
  1. Modify all the gha workflows to use this env in the dappnodesdk commands. Consider using a script for that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions