Skip to content

Try matrix node

Try matrix node #29

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
env:
NODE_VERSION: lts/*
jobs:
deploy:
name: Deploying
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18]
permissions:
contents: write
steps:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"
- name: Code Checkout
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
- name: Run Build
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build
publish_branch: gh-pages