diff --git a/.github/workflows/npm-gulp.yml b/.github/workflows/npm-gulp.yml index 92ff44b..52684be 100644 --- a/.github/workflows/npm-gulp.yml +++ b/.github/workflows/npm-gulp.yml @@ -1,27 +1,21 @@ name: NodeJS with Gulp - on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] - + 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: | - npm install + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3 + with: + node-version: ${{ matrix.node-version }} + - name: Build + run: | + npm install