Skip to content

chore(deps): bump form-data from 3.0.1 to 3.0.4 (#24) #47

chore(deps): bump form-data from 3.0.1 to 3.0.4 (#24)

chore(deps): bump form-data from 3.0.1 to 3.0.4 (#24) #47

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛬
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '14'
- name: Install and Build 🔧
run: |
npm i
npm run build
- name: Cache build artifacts
uses: actions/cache@v4
with:
path: build
key: build-artifacts-${{ github.sha }}
deploy:
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout 🛬
uses: actions/checkout@v4
- name: Restore cached build artifacts
uses: actions/cache@v4
with:
path: build
key: build-artifacts-${{ github.sha }}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build