chore(deps): update dependency vite to v4.5.5 [security] #364
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
name: dependency | |
on: | |
push: | |
branches: | |
- "renovate/*" | |
jobs: | |
deduplicate: | |
runs-on: ubuntu-latest | |
steps: | |
- id: step_find_pr | |
name: Find pull request | |
uses: jwalton/gh-find-current-pr@v1 | |
- name: Checkout code repository | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.RELEASE_PLEASE_GITHUB_TOKEN }} | |
if: ${{ steps.step_find_pr.outputs.number }} | |
- name: Enable Corepack | |
run: | | |
corepack enable | |
pnpm --version | |
- name: Run pnpm dedupe | |
run: | | |
if $(git log -1 --pretty=format:'%an' | egrep -q 'renovate'); then | |
echo "deduplicate lockfile" | |
pnpm dedupe | |
else | |
echo "Skipping lockfile deduplication" | |
fi | |
if: ${{ steps.step_find_pr.outputs.number }} | |
- name: Push to GitHub | |
continue-on-error: true | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "chore(deps): deduplicate pnpm-lock.yaml" | |
git push | |
if: ${{ steps.step_find_pr.outputs.number }} |