This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
Update univerjs/* dependencies #6
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 up '@univerjs/*' --latest | |
- name: Commit and push if there are updates | |
run: | | |
echo "Updates available." | |
git config user.name GitHub Actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "Update univerjs/* dependencies" || exit 0 | |
git push |