mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 07:33:36 +08:00
3537f76eab
* Update core to use new Webpack and TSConfig * Bump webpack dep * Update JS build action * Copy custom `.d.ts` files to `dist-typings` folder on typings compile * Run workflow against action v2 This allows us to have a moving tag, like first party actions have. * Remove bundle analyzer from core * Use webpack config 0.1.0-beta.16.2 * Add note about checking flarum-tsconfig
34 lines
821 B
YAML
34 lines
821 B
YAML
name: JavaScript
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: JS / Build
|
|
runs-on: ubuntu-latest
|
|
|
|
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
|
|
typings_script: build-typings
|