From 7852e98b4c0688dbda1c85cd23a90accbbb40a9b Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 27 Jan 2022 14:12:32 +0200 Subject: [PATCH] Create npm.yml --- .github/workflows/npm.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/npm.yml diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml new file mode 100644 index 0000000..1b824f6 --- /dev/null +++ b/.github/workflows/npm.yml @@ -0,0 +1,28 @@ +name: NPM Install and build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install + npm run build