npm(deps): bump the npm group with 3 updates #145
Workflow file for this run
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: "Auto Assign" | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- ready_for_review | |
env: | |
APP_ID: ${{ secrets.APP_ID }} | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | |
INSTALLATION_ID: ${{ secrets.INSTALLATION_ID }} | |
jobs: | |
add-reviews: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
check-latest: true | |
cache: npm | |
- name: Generate cache primary key based on nodejs's and npm's version and package-lock.json's hash | |
id: version | |
shell: bash | |
run: echo "hash=node@$(node -v | grep -oP '(?<=^v)\d+')_npm@$(npm -v | grep -oP '^\d+')_package-lock@$(openssl dgst -sha3-512 package-lock.json | grep -oP '[\da-f]{128}')" >> $GITHUB_OUTPUT && cat $GITHUB_OUTPUT | |
- uses: actions/cache/restore@v3 | |
name: Try to restore node_modules from cache | |
id: cache | |
with: | |
path: node_modules | |
key: ${{ steps.version.outputs.hash }} | |
- name: Install dependencies if no cache for node_modules | |
run: npm run ci | |
if: success() && steps.cache.outputs.cache-hit != 'true' | |
- uses: actions/cache/save@v3 | |
if: success() && steps.cache.outputs.cache-hit != 'true' | |
name: Save node_modules to cache | |
with: | |
path: node_modules | |
key: ${{ steps.version.outputs.hash }} | |
- name: add assignees and reviewers | |
run: | | |
node scripts/autoAssign/index.js |