You define 'NODE_ENV: production' under the workflow-level 'env:' block. How do you reference this value in an expression inside a step's 'if:' condition?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Inside ${{ }} expressions, environment variables live in the 'env' context — no dollar sign needed.
Full explanation below image
Full Explanation
The 'env' context provides access to environment variables defined in 'env:' blocks within expressions using the syntax 'env.VARIABLE_NAME'. The '$NODE_ENV' syntax works in shell 'run:' commands but not in expression contexts like 'if:', 'with:', or 'name:'. 'process.env.NODE_ENV' is Node.js syntax and doesn't work in workflow expressions. 'vars.' is the context for repository/organization/environment variables defined in Settings, not for inline env: definitions.