Skip to content

Commit

Permalink
Attempt to add a build-assets github action to validate styles and sc…
Browse files Browse the repository at this point in the history
…ripts can be compiled
  • Loading branch information
Mark-H committed Feb 27, 2021
1 parent 926b833 commit bc9fda4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Building assets

on: [push, pull_request]

jobs:
build-assets:

strategy:
matrix:
node-version: [14.x, 15.x]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setting up node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache npm modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- run: npm ci
working-directory: ./public/template
- run: npm run release
working-directory: ./public/template

0 comments on commit bc9fda4

Please sign in to comment.