Skip to content

Commit

Permalink
fix: modernize a bit
Browse files Browse the repository at this point in the history
Closes #128
Closes #127

BREAKING CHANGES: Drop support for Node <= 18 and bump all unified deps
  • Loading branch information
kentcdodds committed May 22, 2024
1 parent ab2da14 commit 264bc82
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,25 @@ on:
- 'alpha'
- '!all-contributors/**'
pull_request: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
main:
# ignore all-contributors PRs
if: ${{ !contains(github.head_ref, 'all-contributors') }}
strategy:
matrix:
node: [14, 16, 18]
node: [18, 20, 22]
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

- name: ⬇️ Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

Expand All @@ -49,16 +51,13 @@ jobs:
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha',
github.ref) && github.event_name == 'push' }}
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

- name: ⬇️ Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
Expand All @@ -69,7 +68,7 @@ jobs:
run: npm run build

- name: 🚀 Release
uses: cycjimmy/semantic-release-action@v3
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 17
branches: |
Expand Down
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,23 @@
"validate": "kcd-scripts validate"
},
"dependencies": {
"@babel/runtime": "^7.18.9",
"@types/hast": "^2.3.4",
"@types/mdast": "^3.0.10",
"hast-util-from-parse5": "^7.1.0",
"parse5": "^7.0.0",
"unified": "^10.1.2",
"unist-util-visit": "^4.1.0"
"@babel/runtime": "^7.24.5",
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.4",
"hast-util-from-parse5": "^8.0.1",
"parse5": "^7.1.2",
"unified": "^11.0.4",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@types/jest": "^28.1.6",
"c8": "^7.12.0",
"kcd-scripts": "^12.2.0",
"remark": "^14.0.2",
"remark-html": "^15.0.1",
"typescript": "^4.7.4",
"vitest": "^0.21.0"
"@types/jest": "^29.5.12",
"@vitest/coverage-v8": "^1.6.0",
"c8": "^9.1.0",
"kcd-scripts": "^15.0.1",
"remark": "^15.0.1",
"remark-html": "^16.0.1",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
},
"eslintConfig": {
"extends": "./node_modules/kcd-scripts/eslint.js"
Expand Down

0 comments on commit 264bc82

Please sign in to comment.