diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 038d522..9763c7b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -14,27 +14,22 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [19.x, 20.x, 21.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: "npm" - - run: npm install - - run: npm run build - - run: npm test - - run: sudo apt-get install xvfb - - run: xvfb-run --auto-servernum npm run test:chrome - - run: xvfb-run --auto-servernum npm run test:firefox + - uses: actions/checkout@v3 + - name: Use Node.js 20.x + uses: actions/setup-node@v3 + with: + node-version: "20.x" + cache: "npm" + - run: npm install + - run: npm run build + - run: npm test + - run: sudo apt-get install xvfb + - run: xvfb-run --auto-servernum npm run test:chrome + - run: xvfb-run --auto-servernum npm run test:firefox - - name: Publish to npm - if: github.ref == 'refs/heads/master' && github.event_name == 'push' - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npm publish + - name: Publish to npm + if: github.ref == 'refs/heads/master' && github.event_name == 'push' + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm publish