Update univerjs/* dependencies #89
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: Update univerjs/* dependencies | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 16 * * *' | |
jobs: | |
update-dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: Install dependencies with pnpm | |
run: | | |
pnpm i | |
pnpm update-deps | |
- name: Commit and push if there are updates | |
run: | | |
echo "Updates available." | |
git config user.name GitHub Actions | |
git config user.email actions@github.com | |
git add . | |
pnpm lint:types | |
git commit -m "Update univerjs/* dependencies" || exit 0 | |
git push |