Skip to content

Commit

Permalink
Merge pull request #945 from lukso-network/fix/ci-publish
Browse files Browse the repository at this point in the history
ci: repair check for `rc` in tag in `publish.mjs` + prepare 0.15.0-rc.4
  • Loading branch information
CJ42 authored Apr 2, 2024
2 parents 0c80c61 + adac8fe commit 19bf75a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions publish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ for (const key in outputs) {
// Skip if no release was created for this LSP package
if (!match || !value) continue;

const version = key.match(/^(.*\/.*)--version$/);
let tag = "latest";

const version = outputs[`${match[1]}--version`];

// Do not publish as latest on npm if we are doing a release candidate
const tag = version.includes("-rc") ? "rc" : "latest";
if (version != null && version.includes("-rc")) {
tag = "rc";
}

const workspace = match[1];
await $`npm publish --workspace=./${workspace} --tag ${tag} --no-git-checks --access public`;
Expand Down

0 comments on commit 19bf75a

Please sign in to comment.