Skip to content

Commit

Permalink
feat(scripts/ci-after-success): use Semantic Release 19
Browse files Browse the repository at this point in the history
BREAKING CHANGE: using new major version of Semantic Release in `ci-after-success`
  • Loading branch information
jrolfs committed Jul 6, 2022
1 parent 0c67b80 commit 9e87c79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/scripts/__tests__/__snapshots__/ci-after-success.js.snap
Expand Up @@ -12,7 +12,7 @@ Array [

exports[`ci-after-success calls concurrently with both scripts when on ci 3`] = `
Array [
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'",
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'",
]
`;

Expand All @@ -28,7 +28,7 @@ Array [

exports[`ci-after-success calls concurrently with both scripts when on github actions 3`] = `
Array [
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'",
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'",
]
`;

Expand All @@ -44,7 +44,7 @@ Array [

exports[`ci-after-success calls concurrently with both scripts when on travis 3`] = `
Array [
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'",
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'",
]
`;

Expand All @@ -60,7 +60,7 @@ Array [

exports[`ci-after-success configures semantic release with internal configuration when no local configuration exists 3`] = `
Array [
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'",
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'",
]
`;

Expand Down Expand Up @@ -108,7 +108,7 @@ Array [

exports[`ci-after-success does not do the codecov script when opted out 3`] = `
Array [
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'",
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'",
]
`;

Expand All @@ -124,7 +124,7 @@ Array [

exports[`ci-after-success does not do the codecov script when there is no coverage directory 3`] = `
Array [
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'",
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'",
]
`;

Expand Down Expand Up @@ -158,6 +158,6 @@ Array [

exports[`ci-after-success runs autorelease script on alternate release branch "next" 3`] = `
Array [
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'",
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'",
]
`;
2 changes: 1 addition & 1 deletion src/scripts/ci-after-success.js
Expand Up @@ -28,7 +28,7 @@ const branch =
const isCI = parseEnv('TRAVIS', false) || parseEnv('CI', false)

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

0 comments on commit 9e87c79

Please sign in to comment.