node-publisher 3.2.0 → 3.2.1
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/CHANGELOG.md +13 -0
- package/package.json +1 -1
- package/src/client/yarn.js +2 -1
- package/src/client/yarn.spec.js +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
### v3.2.0 (2025-07-10)
|
|
2
|
+
|
|
3
|
+
#### Pull requests
|
|
4
|
+
|
|
5
|
+
- [#61](https://github.com/zendesk/node-publisher/pull/61) Update node version ([Daria Radu](mailto:daria.radu@zendesk.com), [Sune Simonsen](mailto:sune@we-knowhow.dk))
|
|
6
|
+
- [#60](https://github.com/zendesk/node-publisher/pull/60) Run different publish command based on yarn version ([Daria Radu](mailto:daria.radu@zendesk.com))
|
|
7
|
+
- [#59](https://github.com/zendesk/node-publisher/pull/59) Fix custom release branch setup to the correct parameter ([Daria Radu](mailto:daria.radu@zendesk.com))
|
|
8
|
+
|
|
9
|
+
#### Commits to master
|
|
10
|
+
|
|
11
|
+
- [v3.2.0](https://github.com/zendesk/node-publisher/commit/989ecec13e467b13217ff482f422bafe61e61dbf) ([Sune Simonsen](mailto:sune@we-knowhow.dk))
|
|
12
|
+
- [Update changelog](https://github.com/zendesk/node-publisher/commit/e19ff455cae89cbd2796c00699ca4debaded6fac) ([Sune Simonsen](mailto:sune@we-knowhow.dk))
|
|
13
|
+
|
|
1
14
|
### v3.1.0 (2024-01-24)
|
|
2
15
|
|
|
3
16
|
#### Pull requests
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-publisher",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "A configurable release automation tool inspired by create-react-app and Travis CI.",
|
|
5
5
|
"author": "Attila Večerek <avecerek@zendesk.com>",
|
|
6
6
|
"homepage": "https://github.com/zendesk/node-publisher#readme",
|
package/src/client/yarn.js
CHANGED
|
@@ -18,7 +18,8 @@ const isYarnV2OrHigher = () => {
|
|
|
18
18
|
|
|
19
19
|
const publish = ({ nextVersion, execCommand }) => {
|
|
20
20
|
if (isYarnV2OrHigher()) {
|
|
21
|
-
execCommand(`yarn
|
|
21
|
+
execCommand(`yarn version ${nextVersion}`);
|
|
22
|
+
execCommand(`yarn npm publish`);
|
|
22
23
|
} else {
|
|
23
24
|
execCommand(`yarn publish --new-version ${nextVersion}`);
|
|
24
25
|
}
|
package/src/client/yarn.spec.js
CHANGED
|
@@ -62,9 +62,8 @@ describe('publish', () => {
|
|
|
62
62
|
|
|
63
63
|
it('publishes new version using yarn v2+ syntax', () => {
|
|
64
64
|
expect(() => publish(options)).not.toThrow();
|
|
65
|
-
expect(options.execCommand.mock.calls[0][0]).toBe(
|
|
66
|
-
|
|
67
|
-
);
|
|
65
|
+
expect(options.execCommand.mock.calls[0][0]).toBe('yarn version patch');
|
|
66
|
+
expect(options.execCommand.mock.calls[1][0]).toBe('yarn npm publish');
|
|
68
67
|
});
|
|
69
68
|
});
|
|
70
69
|
|
|
@@ -77,9 +76,8 @@ describe('publish', () => {
|
|
|
77
76
|
|
|
78
77
|
it('publishes new version using yarn v2+ syntax', () => {
|
|
79
78
|
expect(() => publish(options)).not.toThrow();
|
|
80
|
-
expect(options.execCommand.mock.calls[0][0]).toBe(
|
|
81
|
-
|
|
82
|
-
);
|
|
79
|
+
expect(options.execCommand.mock.calls[0][0]).toBe('yarn version major');
|
|
80
|
+
expect(options.execCommand.mock.calls[1][0]).toBe('yarn npm publish');
|
|
83
81
|
});
|
|
84
82
|
});
|
|
85
83
|
});
|