2020-10-21 04:38:37 +03:00
|
|
|
name: javascript-packages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- build/javascript/package.json
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
run:
|
2021-07-27 23:02:14 +03:00
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
2020-10-21 04:38:37 +03:00
|
|
|
name: npm run build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v2
|
2021-07-27 23:02:14 +03:00
|
|
|
with:
|
2021-04-13 09:13:26 +03:00
|
|
|
# Make sure the actual branch is checked out when running on pull requests
|
2021-07-27 23:02:14 +03:00
|
|
|
ref: ${{ github.head_ref }}
|
2021-04-13 09:13:26 +03:00
|
|
|
|
2020-10-21 04:38:37 +03:00
|
|
|
- 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-31 02:04:03 +03:00
|
|
|
add: "build/javascript/package* webroot/js/web_modules"
|
2020-10-21 04:38:37 +03:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|