diff --git a/.github/workflows/build-node.yml b/.github/workflows/build-node.yml new file mode 100644 index 0000000..5d63ba5 --- /dev/null +++ b/.github/workflows/build-node.yml @@ -0,0 +1,19 @@ +name: build project + +on: + push: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: '20.x' + cache: 'npm' + - run: npm ci + - run: npm run build --if-present