Skip to content

Commit

Permalink
feat: add workflow update lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
a11rew committed Sep 28, 2023
1 parent 7a67c96 commit 0574b30
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dependabot-lock-file.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0574b30

Please sign in to comment.