Skip to content

Commit

Permalink
chore: update node to v18 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Apr 2, 2023
1 parent e254a98 commit 001a7c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
- name: Use Node.js 18.x
uses: actions/setup-node@v3.6.0
with:
node-version: 16.x
node-version: 18.x
- name: Cache Node.js modules
uses: actions/cache@v3.3.1
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.OS }}-node-16.x-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.OS }}-node-18.x-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-16.x
${{ runner.OS }}-node-18.x
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
Expand All @@ -34,7 +34,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
- name: Use Node.js 18.x
uses: actions/setup-node@v3.6.0
with:
node-version: 16.x
node-version: 18.x
- name: Cache Node.js modules
uses: actions/cache@v3.3.1
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.OS }}-node-16.x-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.OS }}-node-18.x-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-16.x
${{ runner.OS }}-node-18.x
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
Expand Down

0 comments on commit 001a7c7

Please sign in to comment.