mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 20:22:31 +08:00
Cache npm cache between JS build runs (#2710)
This commit is contained in:
parent
a5ec39b5cf
commit
c006931798
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -14,6 +14,16 @@ jobs:
|
|||
- 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`,
|
||||
# then commit and upload any changes
|
||||
- name: Build production JS
|
||||
uses: flarum/action-build@master
|
||||
env:
|
||||
|
|
Loading…
Reference in New Issue
Block a user