Skip to content

Commit

Permalink
chore(ci): switch from setup node to volta action
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Jun 25, 2024
1 parent 67bcf73 commit abf7485
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- uses: volta-cli/[email protected]
- 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 [email protected]
run: volta pin [email protected]

- run: npm install
- run: npm run e2e
Expand Down

0 comments on commit abf7485

Please sign in to comment.