Skip to content

Commit

Permalink
chore: Update actions/setup-node
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Jan 20, 2024
1 parent 05e3092 commit d23fc83
Showing 1 changed file with 11 additions and 35 deletions.
46 changes: 11 additions & 35 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,11 @@ jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
- name: Cache modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: "lts/*"
cache: "npm"
- name: Install dependencies
run: |
npm ci
Expand All @@ -29,17 +23,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: "18"
- name: Cache modules
uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: "lts/*"
cache: "npm"
- name: Install dependencies
run: |
npm ci
Expand All @@ -52,17 +40,11 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: "18"
- name: Cache npm
uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: "lts/*"
cache: "npm"
- name: Install dependencies
run: |
npm ci
Expand All @@ -84,16 +66,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: "npm"
- name: Install dependencies
run: |
npm ci
Expand Down

0 comments on commit d23fc83

Please sign in to comment.