mirror of
https://github.com/Ryujinx/Ryujinx-Ldn-Website.git
synced 2025-08-11 20:01:07 +00:00
Remove workflow to fix pnpm dependencies
GitHub supports pnpm for dependabot natively now: https://github.blog/changelog/2023-06-12-dependabot-version-updates-now-supports-pnpm/
This commit is contained in:
parent
6accc2aceb
commit
e676e87276
50
.github/workflows/npm-deps.yml
vendored
50
.github/workflows/npm-deps.yml
vendored
|
@ -1,50 +0,0 @@
|
||||||
name: Fix dependabot PRs
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- "dependabot/**"
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
pnpm-lock:
|
|
||||||
if: github.actor == 'dependabot[bot]'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v2
|
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version-file: ".nvmrc"
|
|
||||||
cache: "pnpm"
|
|
||||||
|
|
||||||
- name: Configure git
|
|
||||||
run: |
|
|
||||||
git config --global user.name github-actions[bot]
|
|
||||||
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
|
|
||||||
|
|
||||||
- name: Install dependencies (no-frozen-lockfile)
|
|
||||||
run: pnpm install --no-frozen-lockfile
|
|
||||||
|
|
||||||
- name: Check if files have been modified
|
|
||||||
id: mod_check
|
|
||||||
run: |
|
|
||||||
[[ $(git status -s | wc -l) -le 1 ]] \
|
|
||||||
&& echo "is-dirty=false" >> "$GITHUB_OUTPUT" \
|
|
||||||
|| echo "is-dirty=true" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Commit and push changes
|
|
||||||
if: steps.mod_check.outputs.is-dirty == 'true'
|
|
||||||
run: |
|
|
||||||
git add .
|
|
||||||
git commit -m "Update pnpm-lock.yaml"
|
|
||||||
git push
|
|
Loading…
Reference in a new issue