File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,31 +36,18 @@ jobs:
3636 npm clean-install
3737 npm audit fix
3838
39- # Store the version, stripping any v-prefix
40- - name : Write release version
39+ - name : Build custom (minimum) release of highlight.js
4140 run : |
42- TAG="${{ github.ref_name }}"
43- echo "VERSION=${TAG#v}" >> "$GITHUB_ENV"
44-
45- - name : Setup PHP, with composer and extensions
46- id : setup-php
47- # https://github.com/shivammathur/setup-php
48- uses : shivammathur/setup-php@v2
49- with :
50- # Should match the minimum required version for SimpleSAMLphp
51- php-version : ' 8.5'
52- tools : composer:v2
53- coverage : none
54-
55- - name : Validate composer.json and composer.lock
56- run : composer validate
57-
58- - name : Install Composer dependencies
59- run : composer install --no-progress --no-dev --prefer-dist --optimize-autoloader
41+ cd node_modules/highlight.js
42+ npm install --package-lock-only
43+ npm clean-install
44+ npm audit fix
45+ npm run build
46+ node tools/build.js xml properties http
6047
6148 - name : Copy third-party dependencies to lib/ directory
6249 run : |
63- cp vendor/fredericpetit/highlightjs-composer/assets/js /highlight.min.js lib/highlight.min.js
50+ cp node_modules/highlight.js/build /highlight.min.js lib/highlight.min.js
6451 cp node_modules/pako/dist/pako_inflate.min.js lib/pako_inflate.min.js
6552
6653 - name : Clean release
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments