A build job computes a package version. A separate publish job needs that version on another runner. Which two steps establish the supported output chain? Select 2.

Published
  1. Declare needs: build on publish and read ${{ needs.build.outputs.version }}.
  2. Assume the working directory is automatically shared between build and publish.
  3. Read steps.producer.outputs.version directly from publish.
  4. Write version to GITHUB_ENV in build and read env.version in publish without a job output.
  5. Give the producing step an id, write version to GITHUB_OUTPUT, and map it to build.outputs.version.

Comments — 0