@orderly.network/npm-release 0.0.3-alpha.0 → 0.0.3-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +7 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -11,6 +11,12 @@ const npm = {
|
|
|
11
11
|
token: process.env.NPM_TOKEN,
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
+
// Internal registry = custom registry (not public npm); skip git tag/push for internal
|
|
15
|
+
const isInternalRegistry = Boolean(
|
|
16
|
+
npm.registry &&
|
|
17
|
+
npm.registry.replace(/\/$/, "") !== "https://registry.npmjs.org"
|
|
18
|
+
);
|
|
19
|
+
|
|
14
20
|
const git = {
|
|
15
21
|
name: process.env.GIT_NAME,
|
|
16
22
|
email: process.env.GIT_EMAIL,
|
|
@@ -28,7 +34,7 @@ const RELEASE_IT_CONFIG = {
|
|
|
28
34
|
ci: true,
|
|
29
35
|
git: {
|
|
30
36
|
commit: true,
|
|
31
|
-
tag:
|
|
37
|
+
tag: !isInternalRegistry,
|
|
32
38
|
push: true,
|
|
33
39
|
// Allow release when working dir is not clean so it works as a third-party package in CI
|
|
34
40
|
// (e.g. after npm install or build steps that touch lockfile or generated files).
|