Skip to content

Bump prettier from 3.3.3 to 3.4.2 in the dev-dependencies group across 1 directory #42

Bump prettier from 3.3.3 to 3.4.2 in the dev-dependencies group across 1 directory

Bump prettier from 3.3.3 to 3.4.2 in the dev-dependencies group across 1 directory #42

name: Test and AutoMerge PRs
on:
pull_request:
types: [opened, synchronize, edit]
branches: [master]
permissions:
# This is needed to approve the PR
pull-requests: write
# This is needed to merge the PR https://github.com/cli/cli/issues/6695#issuecomment-1348430969
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
cache: 'npm'
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# caching node_modules
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci
- name: Check prettier
run: npm run prettier
- name: Build site
run: npm run build
auto-merge-dependabot:
needs: [build]
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Approve the PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Auto merge the PR
run: gh pr merge --rebase --auto "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}