Skip to content

update dependencies #87

update dependencies

update dependencies #87

Workflow file for this run

name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
- name: build
run: npm run build
- name: Build icons
run: npm run build:icons
- name: Replace images
if: github.ref == 'refs/heads/main'
run: gulp replaceImagePaths --imagesDir="https://www.middlebury.edu/campaign/themes/custom/campaign_public_theme/img/"
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./dist
publish_branch: main-dist
github_token: ${{ secrets.GITHUB_TOKEN }}