Skip to content

Feat: Format the code with prettier #18

Feat: Format the code with prettier

Feat: Format the code with prettier #18

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache Node.js modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: app/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('app/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm install
working-directory: app
- name: Configure Git user
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Build and deploy
run: npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}
working-directory: app