Skip to content

Commit

Permalink
feat: add a regex config for automatic updates to semantic-release (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown authored Jun 30, 2023
1 parent 61b25fe commit 2319992
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"automergeType": "pr",
"prCreation": "immediate",
"semanticCommitScope": "deps",
"postUpgradeTasks": {
"commands": ["npx prettier --no-color --write ."],
"fileFilters": ["**/**"],
"executionMode": "branch"
},
"packageRules": [
{
"matchDepTypes": ["dependencies"],
Expand All @@ -24,9 +29,12 @@
"minimumReleaseAge": null
}
],
"postUpgradeTasks": {
"commands": ["npx prettier --no-color --write ."],
"fileFilters": ["**/**"],
"executionMode": "branch"
}
"regexManagers": [
{
"datasourceTemplate": "npm",
"depNameTemplate": "semantic-release",
"fileMatch": ["^\\.github\\/(actions|workflows)\\/[^/]+\\.ya?ml$"],
"matchStrings": ["\\snpx semantic-release@(?<currentValue>.*?)\\s"]
}
]
}
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ jobs:
run: |
# Run `semantic-release`
npm install conventional-changelog-conventionalcommits
npx semantic-release@21.0.1 -- --dry-run ${{ env.DRY_RUN }}
npx semantic-release@21 --dry-run ${{ env.DRY_RUN }}

0 comments on commit 2319992

Please sign in to comment.