Skip to content

Commit

Permalink
feat!: upgrade to node 20 support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Upgrade from v18 to node v20 support
  • Loading branch information
castastrophe committed May 6, 2024
1 parent e28302a commit da08da0
Show file tree
Hide file tree
Showing 6 changed files with 476 additions and 2,110 deletions.
25 changes: 23 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,28 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
labels:
- "dependencies"
commit-message:
prefix: "chore"
include: "scope"
open-pull-requests-limit: 5
rebase-strategy: "auto"
versioning-strategy: "increase"
groups:
semantic-release-ecosystem:
patterns:
- "semantic-release"
- "@semantic-release/*"
- "@types/semantic-release*"
commitlint-ecosystem:
patterns:
- "@commitlint/*"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: yarn
registry-url: "https://registry.npmjs.org"
- run: yarn install --frozen-lockfile
- name: Semantic release
uses: cycjimmy/semantic-release-action@v3
uses: cycjimmy/semantic-release-action@v4.1.0
16 changes: 8 additions & 8 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Use Node LTS version
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: yarn
node-version: 18
node-version: 20
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run test suite
Expand All @@ -26,16 +26,16 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
node-version: 18
node-version: 20
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run coverage report
run: yarn coverage
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverage-data-${{ github.run_id }}
path: |
Expand All @@ -47,7 +47,7 @@ jobs:
format: 'markdown'
output: 'both'
- name: Add coverage PR comment
uses: marocchino/sticky-pull-request-comment@v2.5.0
uses: marocchino/sticky-pull-request-comment@v2.9.0
with:
recreate: true
path: code-coverage-results.md
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.*
20.*
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"index.js"
],
"engines": {
"node": ">=14 <=18"
"node": ">=20"
},
"scripts": {
"prepare": "husky install",
Expand All @@ -35,19 +35,19 @@
"postcss": "^7.0.0 || ^8.0.0"
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^17.4.4",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/commit-analyzer": "^12.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.7",
"@semantic-release/npm": "^10.0.2",
"@semantic-release/release-notes-generator": "^11.0.1",
"ava": "^5.2.0",
"c8": "^8.0.0",
"husky": "^8.0.3",
"@semantic-release/github": "^10.0.3",
"@semantic-release/npm": "^12.0.0",
"@semantic-release/release-notes-generator": "^13.0.0",
"ava": "^6.1.3",
"c8": "^9.1.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"postcss": "^8.4.21",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"prettier-package-json": "^2.8.0",
"semantic-release": "^23.0.8"
Expand Down
Loading

0 comments on commit da08da0

Please sign in to comment.