Skip to content

Commit

Permalink
Update node and checkout actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Sep 11, 2023
1 parent dda0d0d commit 158cd2b
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Read .nvmrc
id: node_version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- uses: actions/checkout@v4

- name: Set up node
uses: actions/setup-node@v2
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}

- uses: actions/cache@v2
uses: actions/setup-node@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version-file: .nvmrc
cache: 'npm'

- name: Install npm packages
run: npm install .
Expand All @@ -37,23 +27,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Read .nvmrc
id: node_version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- uses: actions/checkout@v4

- name: Set up node
uses: actions/setup-node@v2
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}

- uses: actions/cache@v2
uses: actions/setup-node@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version-file: .nvmrc
cache: 'npm'

- name: Install npm packages
run: npm install .
Expand Down

0 comments on commit 158cd2b

Please sign in to comment.