From d665e51067328ce98f0f3b85bec4b436e12827af Mon Sep 17 00:00:00 2001 From: Drew McMillan Date: Thu, 10 Feb 2022 13:25:00 +0000 Subject: [PATCH] Add action --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ package.json | 1 + 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml 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",