Update NPM packages #91
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 NPM packages | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 0 * * * | |
jobs: | |
update-packages: | |
name: Update packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Set up pnpm 📦 | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: false | |
- name: Set up Node.js ⚙️ | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
cache: "pnpm" | |
- name: Update packages | |
run: | | |
npx npm-check-updates -u | |
pnpm install --no-frozen-lockfile | |
- name: Commit & Push changes | |
uses: actions-js/push@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
author_email: [email protected] | |
author_name: Zhen Zhong | |
message: "chore: update packages" |