Skip to content

add simatic ax npm source #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/renovate-bot-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ jobs:
env:
RENOVATE_CONFIG_FILE: "Global-Config/renovate-global-config.js"
LOG_LEVEL: "debug"
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/trigger-renovate-manually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
uses: ./.github/workflows/renovate-bot-run.yml
secrets: inherit
with:
renovate_repository_filter: "simatic-ax/*"
renovate_repository_filter: "simatic-ax/Generators"
12 changes: 9 additions & 3 deletions Global-Config/renovate-global-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,27 @@ module.exports = {
allowScripts: true,
exposeAllEnv: true,
ignoreScripts: true,
updatePinnedDependencies : false,
npmrc: process.env.RENOVATE_NPMRC,
labels: ["renovate"],
hostRules: [
{
hostType: "npm",
matchHost: "registry.simatic-ax.siemens.io",
token: process.env.RENOVATE_APAX_TOKEN,
token: process.env.APAX_TOKEN,
},
{
hostType: "npm",
matchHost: "https://npm.pkg.github.com/",
token: process.env.GITHUB_TOKEN,
},
],
regexManagers: [
{
fileMatch: ["(^|\\/)(test.|test-windows.)?apax.ya?ml$"],
matchStrings: [
// We're using `String.raw` here so that the RegEx can be easily copied from/to other tools (e.g. https://regex101.com/)
String.raw`"(?<depName>@ax\/.*?)"\s*:\s*"?(?<currentValue>[\d\.^\-\w]*)"?`,
String.raw`"(?<depName>@(simatic-ax|ax)\/.*?)"\s*:\s*"?(?<currentValue>[\d\.^\-\w]*)"?`,
],
datasourceTemplate: "npm",
// Unfortunately setting the registryUrl here does not work properly.
Expand Down Expand Up @@ -91,7 +97,7 @@ module.exports = {
// splite SDK out that it doesn't follow the rules regarding breaking changes and version number assignment
"matchPackagePatterns": ["^@{0,1}[Aa][Xx]/[Ss][Dd][Kk]"],
"groupName": "AX-Product SDK",
"matchUpdateTypes": ["major", "minor", "patch", "pin", "pinDigest", "digest", "lockFileMaintenance", "rollback", "bump"],
"matchUpdateTypes": ["major", "minor", "patch", "digest", "lockFileMaintenance", "rollback", "bump"],
},
{
// ax simatic dependencies separated because of breaking changes
Expand Down