Skip to content

Commit

Permalink
GH Actions: update setup-node action
Browse files Browse the repository at this point in the history
## Issue
GH Actions failing with node version error.

## Root
??

## Change
From the Borales docs, `actions/setup-node` is needed if we want to use a specific version.
  • Loading branch information
infinite-persistence committed Oct 26, 2023
1 parent c6d051f commit 42de015
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,22 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Borales/actions-yarn@v3.0.0
- run: yarn lint
- uses: actions/checkout@v3

- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Run "yarn install"
uses: borales/actions-yarn@v4
with:
cmd: install

- name: Run "yarn lint"
uses: borales/actions-yarn@v4
with:
cmd: lint

build:
needs: ['lint']
Expand Down

0 comments on commit 42de015

Please sign in to comment.