Files
maptool/.gitea/workflows/renovate.yml
T
randy f62987b1de
CI / check (push) Successful in 36s
CI / deploy (push) Successful in 13s
Add Renovate config, track vendored JS libs via package.json
The Renovate workflow had no renovate.json, so with onboarding off it
skipped the repo entirely. Now config:recommended plus a regex manager
for the Dockerfile's PMTILES_VERSION/PLANETILER_VERSION pins.

public/vendor/'s npm-published libraries (maplibre-gl, pmtiles,
maplibre-contour, maplibre-gl-lanes, flag-icons, suncalc) are pinned in
package.json; bin/vendor-sync.mjs copies them out of node_modules, and
runs as a Renovate postUpgradeTask so bump PRs carry the new files.
Re-syncing the current versions reproduces the vendored files exactly,
except suncalc's hand-added header, moved into third-party-notices.
2026-11-03 17:15:28 +01:00

35 lines
1.1 KiB
YAML

name: Renovate
on:
workflow_dispatch:
schedule:
# Gitea extends standard cron syntax with an optional "TZ=" prefix.
- cron: "TZ=Europe/Bratislava 0 6 * * 1"
jobs:
renovate:
# Same reasoning as check's runs-on in ci.yml: brick-build's job
# container now has Node (repointed at Gitea's own official runner
# image), which setup-node/npm below need.
runs-on: brick-build
steps:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install Renovate
run: npm install -g renovate
- name: Run Renovate
run: renovate
env:
RENOVATE_PLATFORM: gitea
RENOVATE_ENDPOINT: "${{ gitea.server_url }}/api/v1/"
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
RENOVATE_REPOSITORIES: "${{ gitea.repository }}"
RENOVATE_ONBOARDING: "false"
# postUpgradeTasks in renovate.json (vendor re-sync on npm bumps)
RENOVATE_ALLOWED_COMMANDS: '["^npm ci( \\S+)*$", "^node bin/vendor-sync\\.mjs$"]'
GITHUB_COM_TOKEN: ${{ secrets.GITHUB_COM_TOKEN }}