-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: more to p6m7g8-actions/next-upgrade
- Loading branch information
Showing
1 changed file
with
2 additions
and
47 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,50 +9,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 | ||
- name: Upgrade Deps | ||
uses: p6m7g8-actions/next-upgrade@main |