Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: job to update packages #5763

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/update-leather-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Update Leather.io packages

on:
push:
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 upgrade "@leather.io/*" --latest) >> $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: 'ci: update npm packages'
committer: 'leather-bot <[email protected]>'
author: 'leather-bot <[email protected]>'
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>
Loading