From 324316d7a089e4ab2e07543a5a4dccbb1fac7554 Mon Sep 17 00:00:00 2001 From: TatLead Date: Fri, 26 Apr 2024 14:16:20 +0800 Subject: [PATCH] Create node-build.yml --- .github/workflows/node-build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/node-build.yml diff --git a/.github/workflows/node-build.yml b/.github/workflows/node-build.yml new file mode 100644 index 0000000..fdf54b2 --- /dev/null +++ b/.github/workflows/node-build.yml @@ -0,0 +1,28 @@ +name: NodeJS Build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install + npm run build