Skip to content

Take deployment environment into account when deciding what is affected #162

@MxKaras

Description

@MxKaras

Our problem:

We have three environments in Github: dev, staging, and production. Our flow is that we deploy feature branches to dev, and when it is merged deploy to staging and then production. These latter two are both deploying main.

We are using this action with last-successful-event: deployment.

Right now npx nx affected -t deploy gives the following outcomes:

  • dev: incremental deploy as expected ✅
  • staging: incremental deploy as expected ✅
  • production: nothing is deployed as there is already a successful deployment to main

Proposed Solution:

Change the action to accept an optional deployment-environment that will be used when last-successful-event is deployment to differentiate between deployments to different environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRs WelcomeThis has been discussed and a high quality PR would be gratefully acceptedfeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions