-
Notifications
You must be signed in to change notification settings - Fork 62
32 lines (29 loc) · 990 Bytes
/
nodejs.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
name: Rebuild JSON and MarkDown files
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup pandoc
uses: nikeee/setup-pandoc@v1
with:
pandoc-version: 3.1.12.2
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
git config user.name ${GITHUB_ACTOR}
git config user.email ${PUSHER_EMAIL}
git add vocabularies/*.md vocabularies/*.json examples/*.json
git diff-index --quiet HEAD vocabularies/*.md vocabularies/*.json examples/*.json || git commit -m "auto-refreshed"
git push
env:
CI: true
PUSHER_EMAIL: ${{ github.event.pusher.email }}