Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@simspace:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GH_TOKEN}
always-auth=true
5 changes: 4 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node

import { set, toPairs } from "lodash-es";
import meow from "meow";
import process from "process";
import { toPairs, set } from "lodash-es";
import { logger } from "../lib/logger.js";

const cli = meow(
Expand Down Expand Up @@ -78,6 +78,9 @@ const cli = meow(
silent: {
type: "boolean",
},
successComment: {
type: "boolean",
},
},
}
);
Expand Down
5 changes: 3 additions & 2 deletions lib/getConfigMultiSemrel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import resolveFrom from "resolve-from";
import { cosmiconfig } from "cosmiconfig";
import { pickBy, isNil, castArray, uniq } from "lodash-es";
import { castArray, isNil, pickBy, uniq } from "lodash-es";
import { createRequire } from "node:module";
import resolveFrom from "resolve-from";

/**
* @typedef {Object} DepsConfig
Expand Down Expand Up @@ -90,6 +90,7 @@ export default async function getConfig(cwd, cliOptions) {
ignorePackages: [],
tagFormat: "${name}@${version}",
dryRun: undefined,
successComment: false,
deps: {
bump: "override",
release: "patch",
Expand Down
16 changes: 9 additions & 7 deletions lib/multiSemanticRelease.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import semanticRelease from "semantic-release";
import { uniq, template, sortBy } from "lodash-es";
import { topo } from "@semrel-extra/topo";
import { dirname, join } from "path";
import { sortBy, template, uniq } from "lodash-es";
import { createRequire } from "module";
import { dirname } from "path";
import semanticRelease from "semantic-release";
import { check } from "./blork.js";
import { logger } from "./logger.js";
import cleanPath from "./cleanPath.js";
import createInlinePluginCreator from "./createInlinePluginCreator.js";
import getConfig from "./getConfig.js";
import getConfigMultiSemrel from "./getConfigMultiSemrel.js";
import getConfigSemantic from "./getConfigSemantic.js";
import getManifest from "./getManifest.js";
import cleanPath from "./cleanPath.js";
import { logger } from "./logger.js";
import RescopedStream from "./RescopedStream.js";
import createInlinePluginCreator from "./createInlinePluginCreator.js";
import { createRequire } from "module";

/**
* The multirelease context.
Expand Down Expand Up @@ -243,9 +243,11 @@ async function releasePackage(pkg, createInlinePlugin, multiContext, flags) {
options.debug = flags.debug;
// - dryRun should use the msr version if specified, otherwise fallback to semrel
options.dryRun = flags.dryRun === undefined ? options.dryRun : flags.dryRun;
options.dryRun = options.dryRun ?? false;

// This options are needed for plugins that do not rely on `pluginOptions` and extract them independently.
options._pkgOptions = pkgOptions;
options.branches = flags.branches === undefined ? options.branches : flags.branches;

// Call semanticRelease() on the directory and save result to pkg.
// Don't need to log out errors as semantic-release already does that.
Expand Down
24 changes: 19 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@qiwi/multi-semantic-release",
"name": "@simspace/multi-semantic-release",
"author": "Dave Houlbrooke <dave@shax.com>",
"version": "7.1.2",
"version": "7.1.5",
"license": "0BSD",
"engines": {
"node": ">=14",
Expand Down Expand Up @@ -59,7 +59,7 @@
"execa": "^7.1.1",
"get-stream": "^6.0.1",
"git-log-parser": "^1.2.0",
"lodash-es": "^4.17.21",
"lodash-es": "^4.18.1",
"meow": "^12.0.1",
"promise-events": "^0.2.4",
"resolve-from": "^5.0.0",
Expand All @@ -84,6 +84,19 @@
"prettier": "^2.8.8",
"tempy": "^3.0.0"
},
"resolutions": {
"braces": "^3.0.3",
"**/braces": "^3.0.3",
"**/minimatch/brace-expansion": "^2.1.7",
"brace-expansion": "^1.1.21",
"tar": "^7.5.21",
"ip": "^2.0.1",
"glob": "^12.0.0",
"semver": "^7.5.3",
"minimatch": "^9.0.7",
"pacote": "^21.5.1",
"js-yaml": "^4.3.2"
},
"release": {
"branch": "master",
"verifyConditions": [
Expand All @@ -103,6 +116,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/qiwi/multi-semantic-release.git"
}
"url": "https://github.com/Simspace/multi-semantic-release"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
Loading