diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index d8ec322..a27b7fa 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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/cancel-workflow-action@0.11.0 - - 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 }} @@ -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/cancel-workflow-action@0.11.0 - - 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 @@ -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: | diff --git a/package.json b/package.json index 67490c9..e884e8e 100644 --- a/package.json +++ b/package.json @@ -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"