Skip to content

Upgrade GH workflows to use Node v20 #181

Upgrade GH workflows to use Node v20

Upgrade GH workflows to use Node v20 #181

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main # TODO: switch to tags
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
run: npm install
- name: Build
run: npm run example:build -- --base ./
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/build