2020-10-20 18:38:37 -07:00
|
|
|
name: javascript-packages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- build/javascript/package.json
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
run:
|
2021-07-27 13:02:14 -07:00
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
2020-10-20 18:38:37 -07:00
|
|
|
name: npm run build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
2022-04-10 11:54:39 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-07-27 13:02:14 -07:00
|
|
|
with:
|
2021-04-12 23:13:26 -07:00
|
|
|
# Make sure the actual branch is checked out when running on pull requests
|
2021-07-27 13:02:14 -07:00
|
|
|
ref: ${{ github.head_ref }}
|
2022-03-07 09:10:22 -08:00
|
|
|
|
|
|
|
- name: Build dependencies
|
2022-04-10 13:51:44 +00:00
|
|
|
uses: actions/setup-node@v3
|
2022-03-07 09:10:22 -08:00
|
|
|
with:
|
|
|
|
node-version: '12'
|
2022-03-07 11:21:42 -08:00
|
|
|
- run: cd build/javascript && npm run build
|
2020-10-20 18:38:37 -07:00
|
|
|
|
|
|
|
- name: Commit changes
|
2022-04-10 07:56:40 +00:00
|
|
|
uses: EndBug/add-and-commit@v9
|
2020-10-20 18:38:37 -07:00
|
|
|
with:
|
|
|
|
author_name: Owncast
|
|
|
|
author_email: owncast@owncast.online
|
|
|
|
message: "Commit updated Javascript packages"
|
2020-10-30 16:04:03 -07:00
|
|
|
add: "build/javascript/package* webroot/js/web_modules"
|
2020-10-20 18:38:37 -07:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|