-
-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (35 loc) · 1.1 KB
/
readme.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build readme
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-16-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-16-
- name: Installing dependencies
run: npm ci
- name: Build the documentation
run: npm run doc
- name: Commit to main
id: commit
uses: EndBug/[email protected]
with:
author_name: github-actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: '[skip ci] Update readme'
add: '*.md'
- name: Handle no changes
if: steps.commit.outputs. committed != 'true'
run: echo "No commit was required";