diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index ffaf555..f107334 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -11,31 +11,30 @@ on: jobs: build: - runs-on: ubuntu-latest - strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: [12.x, 14.x, 16.x] steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm i - - run: npm run build --if-present - - run: npm test + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test + release: runs-on: ubuntu-latest needs: build steps: + - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 12 - - uses: actions/checkout@v1 - - run: npm i + node-version: 16 + - run: npm ci - run: npm run build --if-present - run: npx semantic-release env: