Skip to content

Commit

Permalink
Update node version in actions to v20.11 (LTS) and use `.node-version…
Browse files Browse the repository at this point in the history
…` file
  • Loading branch information
theinterned committed Jan 24, 2024
1 parent cee83c0 commit 87a53d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm install
- run: npm run build
- run: npm test
env:
CI: true
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- run: npm install
- run: npm run build
- run: npm test
env:
CI: true
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version-file: '.node-version'
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.0

0 comments on commit 87a53d3

Please sign in to comment.