From 0574b3005e112d0b3e583e3ba73d4ee8819aec05 Mon Sep 17 00:00:00 2001 From: Andrew Glago Date: Thu, 28 Sep 2023 11:18:19 +0000 Subject: [PATCH] feat: add workflow update lockfile --- .github/workflows/dependabot-lock-file.yml | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/dependabot-lock-file.yml diff --git a/.github/workflows/dependabot-lock-file.yml b/.github/workflows/dependabot-lock-file.yml new file mode 100644 index 0000000..8d5cf72 --- /dev/null +++ b/.github/workflows/dependabot-lock-file.yml @@ -0,0 +1,27 @@ +# Dependabot is configured to only run on /packages/plugin +# Since the lockfile is at the root of the repo, we need to +# manually update it when Dependabot runs on a PR +name: Dependabot Lockfile Update +on: pull_request_target +permissions: read-all +jobs: + update-lockfile: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + permissions: + pull-requests: write + contents: write + steps: + - uses: pnpm/action-setup@v2 + with: + version: ^8.8.0 + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} + - run: pnpm i --lockfile-only + - run: | + git config --global user.name github-actions[bot] + git config --global user.email github-actions[bot]@users.noreply.github.com + git add pnpm-lock.yaml + git commit -m "Update pnpm-lock.yaml" + git push