-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (50 loc) · 1.43 KB
/
build_highlightjs.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: build-highlightjs
run-name: Build Flix highlight.js package
on: [ push ]
jobs:
build-highlightjs:
runs-on: ubuntu-latest
steps:
- name: Checkout highlight.js
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: highlightjs/highlight.js
- name: Checkout latest highlight.js release
run: git checkout `(git describe --tags)`
- name: Checkout Flix language spec
uses: actions/checkout@v4
with:
path: extra/flix
- name: Install Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
- name: Test highlight.js
run: |
npm install
node ./tools/build.js -t node
npm run test-markup
- name: Prune languages
run: rm -r src/languages/*
- name: Build highlight.js
run: |
npm install
echo "Running npm audit fix"
npm audit fix
node ./tools/build.js -t all
- name: List all files
run: |
pwd
tree .
ls -Alh
- name: Upload Flix CDN distributable
uses: actions/upload-artifact@v4
with:
name: flix.cdn.dist
path: extra/flix/dist
- name: Upload minimal Highlight.js with Flix bundled
uses: actions/upload-artifact@v4
with:
name: highlight.min.js
path: build/browser/highlight.min.js