Skip to content

Commit

Permalink
Merge pull request #1120 from adobe/fixDeployment
Browse files Browse the repository at this point in the history
Fix deployment
  • Loading branch information
jonsnyder authored May 17, 2024
2 parents 9aa1ca2 + a36fa0a commit 09f7b0e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/helpers/publishToNpm.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/
const publishToNpm = async ({ exec, execSync, logger, npmTag, version }) => {
const publishVersionJson = execSync(
`npm view @adobe/alloy@${version} version --json`,
).toString();
let publishVersionJson = "";
try {
publishVersionJson = execSync(
`npm view @adobe/alloy@${version} version --json`,
).toString();
} catch (e) {
logger.info(e.message);
}
if (publishVersionJson !== "") {
logger.warn(`NPM already has version ${version}.`);
} else {
Expand Down

0 comments on commit 09f7b0e

Please sign in to comment.