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

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

A . This workflow will publish a package to an npm registry.
B . This workflow will publish a package to GitHub Packages.
C . This workflow file is using a matrix strategy.
D . The workflow job publish-npm will only run after the build job passes.

Answer: A, D

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.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments