diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 466f02c..2ad86f3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,6 +13,7 @@ updates: schedule: interval: daily cooldown: + default-days: 7 semver-minor-days: 7 groups: dev-dependencies: diff --git a/.github/workflows/lint-on-push-pr.yml b/.github/workflows/lint-on-push-pr.yml index 01d158c..04fdbc9 100644 --- a/.github/workflows/lint-on-push-pr.yml +++ b/.github/workflows/lint-on-push-pr.yml @@ -11,5 +11,9 @@ jobs: - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 24 + - name: Use npm with release-age support + run: | + npm install --global --prefix "$RUNNER_TEMP/npm-tools" npm@11.21.0 --ignore-scripts --no-audit --no-fund --before="$(node -e 'process.stdout.write(new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString())')" + echo "$RUNNER_TEMP/npm-tools/bin" >> "$GITHUB_PATH" - run: npm ci --ignore-scripts - run: npm run lint diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..7253a5c --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +min-release-age=7