Update Packages #79
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 Packages | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 7 * * 1' # Every monday at 7am UTC | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
update-packages: | |
if: github.repository_owner == 'unjs' | |
name: Update Packages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
fetch-depth: 0 | |
- run: corepack enable | |
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- run: pnpm run cli github sync-packages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |