-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Releasing with semantic-release -e extending a js configuration … (
#152) Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
- Loading branch information
1 parent
ce16926
commit 7354b0c
Showing
5 changed files
with
86 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const baseConfig = require('./release.base.config'); | ||
module.exports = baseConfig({ | ||
branches: [ | ||
'master', | ||
{ | ||
name: 'release/*', | ||
prerelease: '${name.replace(/release\\/v/, "") + "-rc"}' | ||
} | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const baseConfig = require('./release.base.config'); | ||
module.exports = baseConfig({ | ||
branches: [ | ||
'master', | ||
{ | ||
name: 'release/*', | ||
} | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
module.exports = (extraConfig = {}) => ( | ||
{ | ||
...extraConfig, | ||
plugins: [ | ||
'@semantic-release/commit-analyzer', | ||
'@semantic-release/release-notes-generator', | ||
['@semantic-release/changelog', { changelogFile: 'CHANGELOG.md' }], | ||
[ | ||
'@semantic-release/exec', | ||
{ | ||
prepareCmd: 'npm version ${nextRelease.version} --git-tag-version false', | ||
}, | ||
], | ||
[ | ||
'@semantic-release/exec', | ||
{ | ||
prepareCmd: 'npm run build', | ||
}, | ||
], | ||
['@semantic-release/exec', { prepareCmd: 'npm publish --access public' }], | ||
[ | ||
'@semantic-release/exec', | ||
{ | ||
prepareCmd: 'npm run docs', | ||
}, | ||
], | ||
[ | ||
'@semantic-release/exec', | ||
{ | ||
prepareCmd: | ||
'yarn --cwd integration-tests/e2e-tests add @atala/prism-wallet-sdk@^${nextRelease.version}', | ||
}, | ||
], | ||
[ | ||
'@semantic-release/git', | ||
{ | ||
assets: [ | ||
'package.json', | ||
'package-lock.json', | ||
'CHANGELOG.md', | ||
'integration-tests/e2e-tests/package.json', | ||
'integration-tests/e2e-tests/yarn.lock', | ||
'docs/**/*', | ||
], | ||
message: 'chore(release): release ${nextRelease.version}\n\n${nextRelease.notes}', | ||
}, | ||
], | ||
[ | ||
'semantic-release-slack-bot', | ||
{ | ||
notifyOnSuccess: true, | ||
notifyOnFail: true, | ||
markdownReleaseNotes: true, | ||
onSuccessTemplate: { | ||
text: | ||
"A new version of `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/v$npm_package_version\n\nRelease notes:\n$release_notes", | ||
}, | ||
}, | ||
], | ||
], | ||
} | ||
); |
This file was deleted.
Oops, something went wrong.