From b5a093401ab0be2e373211ab05618e14230c671e Mon Sep 17 00:00:00 2001 From: Koh Wei Jie Date: Thu, 3 Aug 2023 16:23:34 +0800 Subject: [PATCH] Create publish.yml --- .github/workflows/npm-gulp.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/npm-gulp.yml diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml new file mode 100644 index 0000000..f6235b0 --- /dev/null +++ b/.github/workflows/npm-gulp.yml @@ -0,0 +1,29 @@ +name: NodeJS with Gulp + +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@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + cd web + npm install + npx parcel index.html