Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored Jun 25, 2021
1 parent 927da7c commit c97c9e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ jobs:
sed -i 's|*DEV|${{ github.ref }}|g' kiosk-mode.js
sed -i 's|refs/tags/||' kiosk-mode.js
- name: Install deps
run: npm install uglify-js @babel/core @babel/cli @babel/preset-env
run: npm install uglify-js browserify @babel/core @babel/cli @babel/preset-env @babel/plugin-transform-runtime
- name: Run Babel
run: npx babel kiosk-mode.js --out-file kiosk-mode.js --presets @babel/preset-env
run: npx babel kiosk-mode.js --out-file kiosk-mode.js --presets @babel/preset-env --plugins @babel/plugin-transform-runtime
- name: Run Uglify
run: npx uglify-js kiosk-mode.js -b beautify=false,max_line_len=150 --compress --mangle toplevel --output kiosk-mode.js
- name: Run Browserify
run: npx browserify kiosk-mode.js -o kiosk-mode.js
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit c97c9e6

Please sign in to comment.