Bump react-router-dom from 6.14.0 to 6.16.0 #399
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: Build Website | |
# Controls when the workflow will run | |
on: | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Let workflow be reusable | |
workflow_call: | |
inputs: | |
upload-artifact: | |
description: "Upload artifact to be used by other workflows" | |
required: true | |
default: false | |
type: boolean | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎 Checkout | |
uses: actions/checkout@v3 | |
# Configure NPM to cache dependencies | |
- name: 📦 Setup Node.js and caching | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
cache: "npm" | |
# Install deps and build | |
- name: 🔨 Install and Build | |
run: | | |
npm i | |
npm run build | |
# Upload artifact if requested | |
- name: ⬆️ Upload artifact | |
if: ${{ inputs.upload-artifact }} | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: "dist" |