Skip to content

Bump router to prerelease (#7283) #18

Bump router to prerelease (#7283)

Bump router to prerelease (#7283) #18

name: ⚙️ Deduplicate yarn.lock
on:
push:
branches:
- dev
paths:
- yarn.lock
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deduplicate:
if: github.repository == 'remix-run/remix'
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
with:
token: ${{ secrets.FORMAT_PAT }}
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: ️️⚙️ Deduplicate yarn.lock
run: npx yarn-deduplicate && rm -rf ./node_modules && yarn
- name: 💪 Commit
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
if [ -z "$(git status --porcelain)" ]; then
echo "💿 no deduplication needed"
exit 0
fi
git commit -m "chore: deduplicate yarn.lock"
git push
echo "💿 https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"