Skip to content

Commit

Permalink
ci: job to update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Aug 15, 2024
1 parent 34405f6 commit 3e4ea06
Showing 1 changed file with 46 additions and 0 deletions.
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>

0 comments on commit 3e4ea06

Please sign in to comment.