Skip to content

Commit ba40875

Browse files
authored
chore: update semantic-release with renovate (#570)
1 parent e7fadb9 commit ba40875

File tree

6 files changed

+58
-10
lines changed

6 files changed

+58
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ jobs:
115115
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token || secrets.PAT || secrets.GITHUB_TOKEN }}
116116
run: >
117117
npx
118-
-p conventional-changelog-conventionalcommits@7
119-
-p semantic-release@23
118+
--package conventional-changelog-conventionalcommits@7.0.2
119+
--package semantic-release@23.1.1
120120
semantic-release

.gitlab/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ semantic-release:
5252
script:
5353
- >
5454
npx
55-
-p @semantic-release/gitlab@13
56-
-p conventional-changelog-conventionalcommits@7
57-
-p semantic-release@23
55+
--package @semantic-release/gitlab@13.1.0
56+
--package conventional-changelog-conventionalcommits@7.0.2
57+
--package semantic-release@23.1.1
5858
semantic-release
5959
stage: release
6060
variables:

.renovaterc.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,21 @@
7070
],
7171
"versioningTemplate": "docker"
7272
},
73+
{
74+
"customType": "regex",
75+
"datasourceTemplate": "npm",
76+
"description": "Match npm packages used by npx",
77+
"fileMatch": [
78+
"^\\.github/workflows/.+\\.yml$",
79+
"^\\.gitlab/workflows/.+\\.yml$",
80+
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$",
81+
"^template/.*\\.gitlab.*/workflows/.+\\.yml(\\.jinja)?$"
82+
],
83+
"matchStrings": [
84+
"--package (?<depName>.+?)@(?<currentValue>.+?)\\s"
85+
],
86+
"versioningTemplate": "docker"
87+
},
7388
{
7489
"customType": "regex",
7590
"datasourceTemplate": "git-tags",
@@ -205,6 +220,14 @@
205220
"debian"
206221
]
207222
},
223+
{
224+
"description": "conventional-changelog-conventionalcommits 7.0.2 is pinned due to https://github.com/semantic-release/release-notes-generator/issues/633",
225+
"enabled": false,
226+
"matchCurrentVersion": "7.0.2",
227+
"matchPackageNames": [
228+
"conventional-changelog-conventionalcommits"
229+
]
230+
},
208231
{
209232
"description": "Pre-commit 3.5.0 is pinned as the last version supporting Python 3.8",
210233
"enabled": false,

template/.renovaterc.json.jinja

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,23 @@
7777
],
7878
"versioningTemplate": "docker"
7979
},
80+
{
81+
"customType": "regex",
82+
"datasourceTemplate": "npm",
83+
"description": "Match npm packages used by npx",
84+
"fileMatch": [
85+
"^\\.github/workflows/.+\\.yml$",
86+
"^\\.gitlab/workflows/.+\\.yml$",
87+
[%- if project_name == "Serious Scaffold Python" %]
88+
"^template/.*\\.github.*/workflows/.+\\.yml(\\.jinja)?$",
89+
"^template/.*\\.gitlab.*/workflows/.+\\.yml(\\.jinja)?$"
90+
[%- endif %]
91+
],
92+
"matchStrings": [
93+
"--package (?<depName>.+?)@(?<currentValue>.+?)\\s"
94+
],
95+
"versioningTemplate": "docker"
96+
},
8097
{
8198
"customType": "regex",
8299
"datasourceTemplate": "git-tags",
@@ -220,6 +237,14 @@
220237
"debian"
221238
]
222239
},
240+
{
241+
"description": "conventional-changelog-conventionalcommits 7.0.2 is pinned due to https://github.com/semantic-release/release-notes-generator/issues/633",
242+
"enabled": false,
243+
"matchCurrentVersion": "7.0.2",
244+
"matchPackageNames": [
245+
"conventional-changelog-conventionalcommits"
246+
]
247+
},
223248
{
224249
"description": "Pre-commit 3.5.0 is pinned as the last version supporting Python 3.8",
225250
"enabled": false,

template/[% if repo_platform == 'github' %].github[% endif %]/workflows/ci.yml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,6 @@ jobs:
146146
GITHUB_TOKEN: {{ '${{ steps.generate-token.outputs.token || secrets.PAT || secrets.GITHUB_TOKEN }}' }}
147147
run: >
148148
npx
149-
-p conventional-changelog-conventionalcommits@7
150-
-p semantic-release@23
149+
--package conventional-changelog-conventionalcommits@7.0.2
150+
--package semantic-release@23.1.1
151151
semantic-release

template/[% if repo_platform == 'gitlab' or repo_platform == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/ci.yml.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ semantic-release:
6565
script:
6666
- >
6767
npx
68-
-p @semantic-release/gitlab@13
69-
-p conventional-changelog-conventionalcommits@7
70-
-p semantic-release@23
68+
--package @semantic-release/gitlab@13.1.0
69+
--package conventional-changelog-conventionalcommits@7.0.2
70+
--package semantic-release@23.1.1
7171
semantic-release
7272
stage: release
7373
variables:

0 commit comments

Comments
 (0)