Skip to content

Update dependencies #79

Update dependencies

Update dependencies #79

Workflow file for this run

name: Update dependencies
on:
schedule:
- cron: "0 */8 * * *"
workflow_dispatch:
jobs:
update-deps:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: true
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Setup Git
run: |
git config --global user.name "mayank1513"
git config --global user.email "[email protected]"
git fetch
git checkout main
git pull
- run: git stash --include-untracked
name: clean up working directory
- run: pnpm upgrade
name: Update dependencies
- run: pnpm build --filter @example/nextjs
name: Build all apps to make sure it is not broken due to dependency upgrades
- name: Run unit tests
run: cd lib && pnpm test
- name: Save upgraded packages back to repo
run: |
echo $(date +%F_%H:%M:%S) > .lst && git add . && git commit -m "upgrade deps && docs [skip ci]" && git push origin main