From 96ffaf60fe299d672b96b52c4d337cbd8b1f2b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Holeczek?= Date: Sat, 9 Jul 2022 00:18:58 +0200 Subject: [PATCH] build: update github actions --- .github/workflows/npm.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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 00000000..27f1fd68 --- /dev/null +++ b/.github/workflows/npm.yml @@ -0,0 +1,34 @@ +name: NPM Installation + +on: + push: + branches-ignore: + - "dependabot/**" + schedule: + - cron: '0 0 * * *' + +env: + FORCE_COLOR: 2 + NODE: 16 + +jobs: + build: + strategy: + matrix: + platform: [ubuntu-latest, windows-latest] + node-version: [16.x, 17.x, 18.x] + runs-on: ${{ matrix.platform }} + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ env.node-version }} + + - name: Install npm dependencies + run: npm install + + - name: Run build + run: npm run build