Skip to content

Commit

Permalink
chore: generate changesets for renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
jpapini committed Jun 25, 2024
1 parent 1460e0e commit e018b31
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
1 change: 1 addition & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"prHourlyLimit": 0,
"prConcurrentLimit": 0,
"semanticCommits": "enabled",
"gitIgnoredAuthors": ["41898282+github-actions[bot]@users.noreply.github.com"],
"packageRules": [
{
"matchUpdateTypes": ["patch", "minor"],
Expand Down
31 changes: 9 additions & 22 deletions .github/workflows/changesets-renovate.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,20 @@
name: Generate changeset for Renovate
name: Add changeset to Renovate updates

on:
merge_group:
pull_request_target:
paths:
- '.github/workflows/changesets-renovate.yml'
- '**/pnpm-lock.yaml'
- '**/package.json'
types: [opened, synchronize, labeled]

jobs:
generate-changesets:
name: Generate changesets
runs-on: ubuntu-latest
timeout-minutes: 5
if: github.actor == 'renovate[bot]'
if: contains(github.event.pull_request.labels.*.name, 'dependencies')
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update Pull Request
uses: mscharley/[email protected]
with:
fetch-depth: 2
ref: ${{ github.head_ref }}

- name: Git Identity
run: |
git config --global user.name 'renovate[bot]'
git config --global user.email '29139614+renovate[bot]@users.noreply.github.com'
- name: Setup PNPM
uses: pnpm/action-setup@v4

- name: Run changesets-renovate
run: pnpm dlx @scaleway/changesets-renovate
token: ${{ secrets.DEPENDENCY_UPDATE_GITHUB_TOKEN }}
use-conventional-commits: false
author-name: github-actions[bot]
author-email: 41898282+github-actions[bot]@users.noreply.github.com
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ coverage
### Temporary ###
old
*.timestamp-*

### Changesets ###
.changeset/*.md

0 comments on commit e018b31

Please sign in to comment.