Skip to content

Commit

Permalink
ci(semantic-release): increment common version in package.jsons (ligh…
Browse files Browse the repository at this point in the history
  • Loading branch information
jim80net authored Feb 8, 2022
1 parent c73255b commit 0b1d2bc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
@semantic-release/git@10
@semantic-release/github@8
@amanda-mitchell/[email protected]
@google/semantic-release-replace-plugin@1
- name: Reset alpha branch upon release
if: |
steps.semantic.outputs.new_release_published == 'true' &&
Expand Down
38 changes: 38 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,44 @@ module.exports = {
}
}
],
[
'@google/semantic-release-replace-plugin',
{
'replacements': [
{
'files': [
'packages/backend/package.json',
'packages/e2e/package.json',
'packages/frontend/package.json',

],
'from': '"common": "\\\^(0|[1-9]\\\d*)\\\.(0|[1-9]\\\d*)\\\.(0|[1-9]\\\d*)(?:-((?:0|[1-9]\\\d*|\\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\\.(?:0|[1-9]\\\d*|\\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\\+([0-9a-zA-Z-]+(?:\\\.[0-9a-zA-Z-]+)*))?"',
'to': '"common": "^${nextRelease.version}"',
'results': [
{
'file': 'packages/backend/package.json',
'hasChanged': true,
'numMatches': 1,
'numReplacements': 1
},
{
'file': 'packages/e2e/package.json',
'hasChanged': true,
'numMatches': 1,
'numReplacements': 1
},
{
'file': 'packages/frontend/package.json',
'hasChanged': true,
'numMatches': 1,
'numReplacements': 1
},
],
'countMatches': true
}
]
}
],
[
'@semantic-release/git',
{
Expand Down

0 comments on commit 0b1d2bc

Please sign in to comment.