Skip to content

leather-deps-updated #66

leather-deps-updated

leather-deps-updated #66

name: Update Leather.io packages
on:
workflow_dispatch:
repository_dispatch:
types: [leather-deps-updated]
jobs:
update-leather-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: dev
token: ${{ secrets.LEATHER_BOT }}
- uses: ./.github/actions/provision
- name: Update @leather.io/* packages
id: update-packages
run: echo output=$(pnpm update "@leather.io/*" --latest | grep -v '^Progress') >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.LEATHER_BOT }}
branch: 'chore-update-leather-packages'
commit-message: 'ci: update leather.io packages'
title: '[bot] ci: update npm packages'
committer: 'leather-bot <leather-bot@users.noreply.github.com>'
author: 'leather-bot <leather-bot@users.noreply.github.com>'
body: |
Updating packages
If the CI build fails it's likely that there have been breaking changes upstream in the monorepo.
A Leather dev should checkout the repo and fix these before merging the pull request.
<details>
<summary>Output</summary>
${{ steps.update-packages.outputs.output }}
</details>