2020-10-20 18:38:37 -07:00
|
|
|
name: javascript-packages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- build/javascript/package.json
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
run:
|
|
|
|
name: npm run build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
cd build/javascript
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
- name: Commit changes
|
|
|
|
uses: EndBug/add-and-commit@v5
|
|
|
|
with:
|
|
|
|
author_name: Owncast
|
|
|
|
author_email: owncast@owncast.online
|
|
|
|
message: "Commit updated Javascript packages"
|
2020-10-28 14:58:33 -07:00
|
|
|
add: "./build/javascript/package* ./webroot/js/web_modules"
|
2020-10-20 18:38:37 -07:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|