Skip to content

fix: CI remove unsupported node v22.x #6

fix: CI remove unsupported node v22.x

fix: CI remove unsupported node v22.x #6

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Init a hexo site
run: |
npm i hexo -g
hexo init
- name: Install node modules
run: |
npm install
npm install hexo-renderer-pug
- name: Modify _config.yml
run: cat themes/hexo-theme-yuzu/_root_config_example.yml >> _config.yml
- name: Checkout hexo-theme-yuzu
uses: actions/checkout@v4
with:
path: themes/hexo-theme-yuzu
- name: Build assets
run: npm run build