upgrade-main #5
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: upgrade-main | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: '*/5 * * * *' | |
jobs: | |
upgrade: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
ref: main | |
- name: Install Node.js | |
run: | | |
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
- name: Install pnpm and dependencies | |
run: | | |
corepack enable | |
corepack prepare pnpm@latest --activate | |
pnpm install | |
- name: Cache NPM dependencies | |
uses: actions/[email protected] | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Update Deps | |
run: | | |
pnpm up --latest | |
git diff | |
- name: Create Pull Request | |
id: create-pr | |
uses: peter-evans/[email protected] | |
with: | |
token: ${{ secrets.P6_PGOLLUCCI_GH_TOKEN }} | |
commit-message: |- | |
chore(deps): upgrade dependencies | |
Upgrades project dependencies. See details in [workflow run]. | |
[Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
branch: github-actions/upgrade-main | |
title: "chore(deps): upgrade dependencies" | |
labels: auto-approve | |
body: |- | |
Upgrades project dependencies. See details in [workflow run]. | |
[Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
author: github-actions <[email protected]> | |
committer: github-actions <[email protected]> | |
signoff: true |