-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34405f6
commit 3e4ea06
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |