Skip to content

Commit

Permalink
Update publish.js
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon authored Jan 14, 2024
1 parent 19ae0a3 commit 4c7c7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const publish = async (tag) => {

// VALIDATE TAG
const dev = version.includes("-dev.") === true;
if (tag !== "latest" && dev === false)
if (tag === "next" && dev === false)
throw new Error(`${tag} tag can only be used for dev versions.`);
else if (tag === "latest" && dev === true)
throw new Error(`latest tag can only be used for non-dev versions.`);
Expand Down

0 comments on commit 4c7c7db

Please sign in to comment.