-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 870 Bytes
/
nodejs.yml
File metadata and controls
30 lines (30 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Node CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [24.x, 25.x]
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: yarn, yarn build
run: |
yarn --frozen-lockfile
yarn build --configuration production --output-path docs --base-href /${{ github.event.repository.name }}/
env:
CI: true
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v4
if: ${{ matrix.node-version == '24.x' && github.event_name == 'push' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs # The folder the action should deploy.