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.
Question
Based on the YAML below, which two statements are correct? (Choose two.)
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)- A82% (18)
- B5% (1)
- C14% (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
Community Discussion
No community discussion yet for this question.
