Skip to content

build(deps): bump njwt and @salesforce/retail-react-app #56

build(deps): bump njwt and @salesforce/retail-react-app

build(deps): bump njwt and @salesforce/retail-react-app #56

Workflow file for this run

name: Format Code
on:
pull_request:
branches:
- '*'
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Run formatter
run: npm run format
- name: Check for changes
id: git-check
run: |
git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT
- name: Commit changes
if: steps.git-check.outputs.changes == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -am "style: format code with npm run format"
git push