Skip to content

Commit 9e87c79

Browse files
committed
feat(scripts/ci-after-success): use Semantic Release 19
BREAKING CHANGE: using new major version of Semantic Release in `ci-after-success`
1 parent 0c67b80 commit 9e87c79

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/scripts/__tests__/__snapshots__/ci-after-success.js.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Array [
1212

1313
exports[`ci-after-success calls concurrently with both scripts when on ci 3`] = `
1414
Array [
15-
concurrently --prefix [{name}] --names codecov,release --prefix-colors bgBlue.bold.reset,bgGreen.bold.reset "echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'" "echo installing semantic-release && npx -p semantic-release@17 -c 'echo running semantic-release && semantic-release'",
15+
concurrently --prefix [{name}] --names codecov,release --prefix-colors bgBlue.bold.reset,bgGreen.bold.reset "echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'" "echo installing semantic-release && npx -p semantic-release@19 -c 'echo running semantic-release && semantic-release'",
1616
]
1717
`;
1818

@@ -28,7 +28,7 @@ Array [
2828

2929
exports[`ci-after-success calls concurrently with both scripts when on github actions 3`] = `
3030
Array [
31-
concurrently --prefix [{name}] --names codecov,release --prefix-colors bgBlue.bold.reset,bgGreen.bold.reset "echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'" "echo installing semantic-release && npx -p semantic-release@17 -c 'echo running semantic-release && semantic-release'",
31+
concurrently --prefix [{name}] --names codecov,release --prefix-colors bgBlue.bold.reset,bgGreen.bold.reset "echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'" "echo installing semantic-release && npx -p semantic-release@19 -c 'echo running semantic-release && semantic-release'",
3232
]
3333
`;
3434

@@ -44,7 +44,7 @@ Array [
4444

4545
exports[`ci-after-success calls concurrently with both scripts when on travis 3`] = `
4646
Array [
47-
concurrently --prefix [{name}] --names codecov,release --prefix-colors bgBlue.bold.reset,bgGreen.bold.reset "echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'" "echo installing semantic-release && npx -p semantic-release@17 -c 'echo running semantic-release && semantic-release'",
47+
concurrently --prefix [{name}] --names codecov,release --prefix-colors bgBlue.bold.reset,bgGreen.bold.reset "echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'" "echo installing semantic-release && npx -p semantic-release@19 -c 'echo running semantic-release && semantic-release'",
4848
]
4949
`;
5050

@@ -60,7 +60,7 @@ Array [
6060

6161
exports[`ci-after-success configures semantic release with internal configuration when no local configuration exists 3`] = `
6262
Array [
63-
concurrently --prefix [{name}] --names release --prefix-colors bgBlue.bold.reset "echo installing semantic-release && npx -p semantic-release@17 -c 'echo running semantic-release && semantic-release --extends ./src/config/release.config.js'",
63+
concurrently --prefix [{name}] --names release --prefix-colors bgBlue.bold.reset "echo installing semantic-release && npx -p semantic-release@19 -c 'echo running semantic-release && semantic-release --extends ./src/config/release.config.js'",
6464
]
6565
`;
6666

@@ -108,7 +108,7 @@ Array [
108108

109109
exports[`ci-after-success does not do the codecov script when opted out 3`] = `
110110
Array [
111-
concurrently --prefix [{name}] --names release --prefix-colors bgBlue.bold.reset "echo installing semantic-release && npx -p semantic-release@17 -c 'echo running semantic-release && semantic-release'",
111+
concurrently --prefix [{name}] --names release --prefix-colors bgBlue.bold.reset "echo installing semantic-release && npx -p semantic-release@19 -c 'echo running semantic-release && semantic-release'",
112112
]
113113
`;
114114

@@ -124,7 +124,7 @@ Array [
124124

125125
exports[`ci-after-success does not do the codecov script when there is no coverage directory 3`] = `
126126
Array [
127-
concurrently --prefix [{name}] --names release --prefix-colors bgBlue.bold.reset "echo installing semantic-release && npx -p semantic-release@17 -c 'echo running semantic-release && semantic-release'",
127+
concurrently --prefix [{name}] --names release --prefix-colors bgBlue.bold.reset "echo installing semantic-release && npx -p semantic-release@19 -c 'echo running semantic-release && semantic-release'",
128128
]
129129
`;
130130

@@ -158,6 +158,6 @@ Array [
158158

159159
exports[`ci-after-success runs autorelease script on alternate release branch "next" 3`] = `
160160
Array [
161-
concurrently --prefix [{name}] --names codecov,release --prefix-colors bgBlue.bold.reset,bgGreen.bold.reset "echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'" "echo installing semantic-release && npx -p semantic-release@17 -c 'echo running semantic-release && semantic-release'",
161+
concurrently --prefix [{name}] --names codecov,release --prefix-colors bgBlue.bold.reset,bgGreen.bold.reset "echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'" "echo installing semantic-release && npx -p semantic-release@19 -c 'echo running semantic-release && semantic-release'",
162162
]
163163
`;

src/scripts/ci-after-success.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const branch =
2828
const isCI = parseEnv('TRAVIS', false) || parseEnv('CI', false)
2929

3030
const codecovCommand = `echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'`
31-
const releaseCommand = `echo installing semantic-release && npx -p semantic-release@17 -c 'echo running semantic-release && semantic-release${
31+
const releaseCommand = `echo installing semantic-release && npx -p semantic-release@19 -c 'echo running semantic-release && semantic-release${
3232
hasLocalConfig('release')
3333
? ''
3434
: ` --extends ${hereRelative('../config/release.config.js')}`

0 commit comments

Comments
 (0)