diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2b22401..271a1b3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -19,15 +19,13 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4.1.7 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4.0.2 - with: - node-version: ${{ matrix.node-version }} + - uses: volta-cli/action@v4.1.1 + - run: volta pin node@${{ matrix.node-version }} # Node 8.3.0 comes with npm 5.3.0. # npm 5.7.1 is the first version to support npm ci - if: ${{ matrix.node-version != '18.x' }} - run: npm install -g npm@5.7.1 + run: volta pin npm@5.7.1 - run: npm install - run: npm run e2e