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