Skip to content

Commit

Permalink
Use node 20, configure env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadenas committed Dec 21, 2023
1 parent d17ce18 commit 27600df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: CI

on:
- push
- pull_request

jobs:
cache-and-install:
build:
runs-on: ubuntu-latest
environment: test

steps:
- name: Checkout
Expand All @@ -13,7 +16,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: '20.x'

- uses: pnpm/action-setup@v2
name: Install pnpm
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com:planetary-social/cleanstr.git"
},
"engines": {
"node": ">=16.0.0"
"node": "~20"
},
"scripts": {
"test": "c8 --reporter=lcov --check-coverage --lines 80 --functions 80 --branches 80 --statements 80 mocha --timeout=5000 --exit",
Expand Down

0 comments on commit 27600df

Please sign in to comment.