diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b85bed2..ceef587 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,9 +5,9 @@ name: Node.js CI on: push: - branches: [ master ] + branches: [ "vnext", "master" ] pull_request: - branches: [ master ] + branches: [ "vnext", "master" ] jobs: build: @@ -20,14 +20,13 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - # cache: 'npm' # enable after committing lock file from first install - - run: npm i # replace with 'npm ci' after committing lock file from first install -# - run: npm run lint - - run: npm run build - - run: npm run test + cache: 'npm' + - run: npm ci + - run: npm run lint + - run: npm run build --if-present