npm update #104
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: npm update | |
on: workflow_dispatch | |
jobs: | |
npm-update: | |
name: npm update | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 'lts/*' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache node deps | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-node-deps | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
- name: npm update | |
run: | | |
npm install | |
npm update | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: '${{ secrets.GH_PAT }}' | |
add-paths: 'package*.json' | |
commit-message: npm update | |
title: npm update | |
branch: npm-update | |
author: 'github-actions <[email protected]>' |