1
0
Fork 0
mirror of https://github.com/owncast/owncast.git synced 2024-12-30 13:08:30 +03:00
owncast/.github/workflows/javascript-packages.yaml

34 lines
958 B
YAML
Raw Normal View History

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