Skip to content

Revert "Updating to Node 22 (#8)" #26

Revert "Updating to Node 22 (#8)"

Revert "Updating to Node 22 (#8)" #26

Workflow file for this run

name: Build and Deploy
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Cache node modules
uses: actions/cache@v3
with:
path: |
node_modules
components/Styling/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json', 'components/Styling/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
npm install
cd components/Styling && npm install
- name: Build
run: npm run build
- name: Upload Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: public
deploy:
if: github.ref == 'refs/heads/main'
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4