chore(deps-dev): bump jsdom from 20.0.3 to 25.0.1 #2088
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: yarn-deduplicate | |
on: | |
pull_request: | |
paths: | |
- "yarn.lock" | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
deployments: read | |
pull-requests: write # needed to write comment in PR | |
jobs: | |
dedupe: | |
runs-on: ubuntu-latest | |
name: Deduplicate | |
environment: pull_request_unsafe | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- name: Use Node.js | |
uses: ./.github/actions/setup-node | |
- name: yarn-deduplicate | |
id: deduplicate | |
run: | | |
yarn | |
yarn yarn-deduplicate | |
echo "::set-output name=diff::$(git status --short yarn.lock)" | |
- name: Commit dedupe | |
if: steps.deduplicate.outputs.diff | |
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 #1.5 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
message: "chore: yarn-deduplicate" | |
branch: ${{ github.head_ref }} |