Skip to content

Commit

Permalink
chore: use Node 20 (#48)
Browse files Browse the repository at this point in the history
* chore: use Node 20

This required updating the npm lockfile and CI.

* update lock file

* attempt to fix lockfile

* fix lockfile again...

* try to fix workflow

* try something else...

* fix type

* update node version in release workflow

---------

Co-authored-by: Evan Hahn <[email protected]>
  • Loading branch information
gmaclennan and EvanHahn authored Apr 18, 2024
1 parent b8708c6 commit f63d2aa
Show file tree
Hide file tree
Showing 4 changed files with 2,687 additions and 1,407 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js 12
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: '12'
node-version: '20'
- name: Configure git user & email
run: |
git config user.name Github Actions
Expand Down Expand Up @@ -82,10 +82,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js 12
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: '12'
node-version: '20'
- name: Get version
id: version
run: |
Expand All @@ -111,7 +111,8 @@ jobs:
id: build_asset
run: |
mkdir -p build
$(npm bin)/mapeo-settings build -l 'en' -o build/${{ steps.filename.outputs.FILENAME }}
$(npm root)/.bin/mapeo-settings build -l 'en' -o build/${{ steps.filename.outputs.FILENAME }}
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.filename.outputs.FILENAME }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
issues: write
pull-requests: write
steps:
- name: Use Node.js 12
uses: actions/setup-node@v3
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20
- uses: nearform-actions/optic-release-automation-action@v4
with:
commit-message: 'Release {version}'
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
Loading

0 comments on commit f63d2aa

Please sign in to comment.