Skip to content

Commit

Permalink
chore: npm audit fix, update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Jan 30, 2023
1 parent d5665b8 commit 61e5427
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 34 deletions.
42 changes: 14 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,18 @@
name: JavaScript
name: Javascript

on:
push:
branches:
- master
on: [workflow_dispatch, push, pull_request]

jobs:
build:
name: JS / Build
runs-on: ubuntu-latest
run:
uses: flarum/framework/.github/workflows/REUSABLE_frontend.yml@main
with:
enable_bundlewatch: false
enable_prettier: true
enable_typescript: false

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Restore npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('js/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# Our action will install npm, cd into `./js`, run `npm run build` and
# `npm run build-typings`, then commit and upload any changes
- name: Build production JS
uses: flarum/action-build@2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: build
package_manager: npm
frontend_directory: ./js
backend_directory: .
js_package_manager: npm
main_git_branch: master
secrets:
bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 61e5427

Please sign in to comment.