mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
Configure Renovate (#2493)
* Add renovate.json * Update renovate.json * Update renovate.json * Enable git-submodules * Remove Dependabot * Update renovate.json Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: ylemkimon <y@ylem.kim>
This commit is contained in:
14
.github/dependabot.yml
vendored
14
.github/dependabot.yml
vendored
@@ -3,20 +3,6 @@
|
|||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "npm"
|
|
||||||
directory: "/" # Location of package manifests
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
- package-ecosystem: "npm"
|
|
||||||
directory: "/website/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
|
|
||||||
- package-ecosystem: "gitsubmodule"
|
|
||||||
directory: "/" # Location of .gitmodules
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
|
|
||||||
- package-ecosystem: "github-actions"
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/" # Location of .github
|
directory: "/" # Location of .github
|
||||||
schedule:
|
schedule:
|
||||||
|
47
.github/workflows/dependabot.yml
vendored
47
.github/workflows/dependabot.yml
vendored
@@ -1,47 +0,0 @@
|
|||||||
name: Dependabot
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ dependabot/npm_and_yarn/** ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
- name: Use Node.js 12.x
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: '12'
|
|
||||||
- name: Autofix lockfile
|
|
||||||
run: |
|
|
||||||
# change directory
|
|
||||||
cd .`git log -1 --pretty=%s | awk '{ print $9 }'`
|
|
||||||
|
|
||||||
# restore yarn.lock from the previous commit
|
|
||||||
git checkout HEAD^ -- yarn.lock
|
|
||||||
|
|
||||||
# install yarn-plugin-deduplicate
|
|
||||||
yarn plugin import https://raw.githubusercontent.com/eps1lon/yarn-plugin-deduplicate/latest/bin/%40yarnpkg/plugin-deduplicate.js
|
|
||||||
|
|
||||||
# if package.json was not updated, upgrade the dependency
|
|
||||||
git diff --name-only HEAD^ HEAD | grep -q 'package.json' || yarn up `git log -1 --pretty=%s | awk '{ print $3 }'`
|
|
||||||
|
|
||||||
# restore package.json from the last commit
|
|
||||||
git checkout HEAD -- package.json
|
|
||||||
|
|
||||||
yarn install
|
|
||||||
|
|
||||||
# deduplicate lockfile
|
|
||||||
yarn deduplicate
|
|
||||||
- name: Commit changes
|
|
||||||
run: |
|
|
||||||
cd .`git log -1 --pretty=%s | awk '{ print $9 }'`
|
|
||||||
git add yarn.lock
|
|
||||||
git config --global user.name 'dependabot[bot]'
|
|
||||||
git config --global user.email '49699333+dependabot[bot]@users.noreply.github.com'
|
|
||||||
git commit -m "Dependabot autofix [skip netlify]"
|
|
||||||
git push
|
|
@@ -3,7 +3,6 @@
|
|||||||
[](https://github.com/KaTeX/KaTeX/actions?query=workflow%3ACI)
|
[](https://github.com/KaTeX/KaTeX/actions?query=workflow%3ACI)
|
||||||
[](https://codecov.io/gh/KaTeX/KaTeX)
|
[](https://codecov.io/gh/KaTeX/KaTeX)
|
||||||
[](https://github.com/KaTeX/KaTeX/discussions)
|
[](https://github.com/KaTeX/KaTeX/discussions)
|
||||||
[](https://dependabot.com)
|
|
||||||
[](https://www.jsdelivr.com/package/npm/katex)
|
[](https://www.jsdelivr.com/package/npm/katex)
|
||||||

|

|
||||||
[](https://gitpod.io/#https://github.com/KaTeX/KaTeX)
|
[](https://gitpod.io/#https://github.com/KaTeX/KaTeX)
|
||||||
|
28
renovate.json
Normal file
28
renovate.json
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"config:base",
|
||||||
|
":dependencyDashboard",
|
||||||
|
":automergeMinor",
|
||||||
|
":prNotPending",
|
||||||
|
"group:linters"
|
||||||
|
],
|
||||||
|
"git-submodules": {
|
||||||
|
"enabled": true,
|
||||||
|
"automerge": false
|
||||||
|
},
|
||||||
|
"lockFileMaintenance": {
|
||||||
|
"enabled": true,
|
||||||
|
"schedule": ["at any time"],
|
||||||
|
"stabilityDays": 0,
|
||||||
|
"dependencyDashboardApproval": true
|
||||||
|
},
|
||||||
|
"includePaths": [
|
||||||
|
"package.json",
|
||||||
|
"website/package.json",
|
||||||
|
".gitmodules"
|
||||||
|
],
|
||||||
|
"stabilityDays": 3,
|
||||||
|
"rangeStrategy": "update-lockfile",
|
||||||
|
"commitBody": "[skip netlify]",
|
||||||
|
"postUpdateOptions": ["yarnDedupeHighest"]
|
||||||
|
}
|
Reference in New Issue
Block a user