From 3e4ea06f0acf1e801acd07fc1fea209ee7d8ec92 Mon Sep 17 00:00:00 2001 From: kyranjamie Date: Thu, 15 Aug 2024 13:16:55 +0200 Subject: [PATCH] ci: job to update packages --- .github/workflows/update-leather-packages.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/update-leather-packages.yml diff --git a/.github/workflows/update-leather-packages.yml b/.github/workflows/update-leather-packages.yml new file mode 100644 index 00000000000..b48e6c76033 --- /dev/null +++ b/.github/workflows/update-leather-packages.yml @@ -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 ' + author: 'leather-bot ' + 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. + +
+ + Output + + ${{ steps.update-packages.outputs.output }} + +