nerdexam
GitHub

GITHUB-ACTIONS · Question #53

Based on the YAML below, which two statements are correct? (Choose two.)

The correct answer is A. This workflow will publish a package to an npm registry. D. The workflow job publish-npm will only run after the build job passes.. The publish-npm job includes the JS-DevTools/npm-publish action, which is used to publish an npm package to an npm registry. The publish-npm job has the needs: build directive, meaning it will only run after the build job successfully completes.

GitHub Actions - Packages and Publishing

Question

Based on the YAML below, which two statements are correct? (Choose two.)

Exhibit

GITHUB-ACTIONS question #53 exhibit

Options

  • AThis workflow will publish a package to an npm registry.
  • BThis workflow will publish a package to GitHub Packages.
  • CThis workflow file is using a matrix strategy.
  • DThe workflow job publish-npm will only run after the build job passes.

How the community answered

(22 responses)
  • A
    82% (18)
  • B
    5% (1)
  • C
    14% (3)

Explanation

The publish-npm job includes the JS-DevTools/npm-publish action, which is used to publish an npm package to an npm registry. The publish-npm job has the needs: build directive, meaning it will only run after the build job successfully completes.

Topics

#npm registry#workflow jobs#job dependencies#needs keyword

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice