Skip to content

Commit

Permalink
Merge pull request #3 from palashmon/renovate/configure
Browse files Browse the repository at this point in the history
chore: Configure Renovate
  • Loading branch information
palashmon committed Apr 18, 2024
2 parents fa450c7 + c4395e4 commit 0b706b4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 27 deletions.
18 changes: 0 additions & 18 deletions .github/dependabot.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>palashmon/renovate-config"]
}
20 changes: 20 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Auto-approve PR
on: pull_request_target
permissions:
contents: write
pull-requests: write
jobs:
auto-approve-renovate-prs:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: '0'
- name: Approve PR
if: github.actor == 'renovate[bot]'
run: |
gh pr review --approve ${{ github.event.number }} -b "I'm **approving** \
this pull request because it includes a patch or minor update."
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
15 changes: 6 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
name: CI
on:
- push
- pull_request
on: [push, pull_request]
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 21
- 20
- 18
node-version: ['lts/*', 'current']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js (${{ matrix.node-version }})
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down

0 comments on commit 0b706b4

Please sign in to comment.