diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..3a0e8a29 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: NodeJS with Grunt + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version-file: '.nvmrc' + + - name: Build + run: | + npm install + npm run build diff --git a/package.json b/package.json index a7a9e8aa..d05c9616 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "url": "https://github.com/mathigon/parallel.git" }, "scripts": { + "build": "grunt build", "start": "grunt build && npm run serve", "serve": "grunt concurrent & firebase serve", "export-users": "firebase auth:export ./private/tmp-users.json --format=json",