Skip to content

Commit

Permalink
chore: deps update
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Aug 5, 2024
1 parent fe7c08a commit 3ee22ca
Show file tree
Hide file tree
Showing 45 changed files with 2,730 additions and 2,627 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
extends: ["@commitlint/config-conventional"],
parserPreset: {
parserOpts: {
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/u,
},
},
};
83 changes: 0 additions & 83 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
**/tsconfig.json linguist-language=jsonc
**/tsconfig.*.json linguist-language=jsonc
/.lintstagedrc linguist-language=json
/.markdownlint.json linguist-language=jsonc
/.vscode/*.json linguist-language=jsonc

/CHANGELOG.md linguist-generated
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
node-version:
required: false
description: "`node-version` passed to `actions/setup-node`."
default: latest
default: "20"

runs:
using: "composite"
Expand Down
53 changes: 27 additions & 26 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,57 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"automergeStrategy": "rebase",
"extends": [
":automergeAll",
":automergePr",
":ignoreModulesAndTests",
"replacements:all",
"workarounds:all",
":prConcurrentLimitNone",
":prHourlyLimitNone",
":semanticCommits",
"group:allNonMajor",
"group:monorepos",
"group:recommended",
":automergeAll",
":automergePr",
":semanticCommits",
":prHourlyLimitNone",
":prConcurrentLimitNone",
"helpers:disableTypesNodeMajor",
"schedule:weekly"
"replacements:all",
"schedule:monthly",
"workarounds:all"
],
"labels": ["Type: Maintenance", ":blue_heart:"],
"automergeStrategy": "rebase",
"postUpdateOptions": ["pnpmDedupe"],
"rebaseWhen": "behind-base-branch",
"packageRules": [
{
"matchManagers": ["npm"],
"major": {
"semanticCommitType": "build"
},
"matchDepTypes": ["dependencies"],
"matchManagers": ["npm"],
"rangeStrategy": "update-lockfile",
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"major": {
"semanticCommitType": "build"
}
"semanticCommitType": "chore"
},
{
"matchManagers": ["npm"],
"matchDepTypes": ["devDependencies"],
"matchManagers": ["npm"],
"rangeStrategy": "pin",
"semanticCommitType": "chore",
"semanticCommitScope": "dev-deps"
"semanticCommitScope": "dev-deps",
"semanticCommitType": "chore"
},
{
"matchManagers": ["npm"],
"major": {
"semanticCommitType": "build"
},
"matchDepTypes": ["peerDependencies"],
"matchManagers": ["npm"],
"rangeStrategy": "widen",
"semanticCommitType": "chore",
"semanticCommitScope": "peer-deps",
"major": {
"semanticCommitType": "build"
}
"semanticCommitType": "chore"
},
{
"matchManagers": ["github-actions"],
"rangeStrategy": "replace",
"semanticCommitType": "ci",
"semanticCommitScope": "dev-deps"
"semanticCommitScope": "dev-deps",
"semanticCommitType": "ci"
}
]
],
"postUpdateOptions": ["pnpmDedupe"]
}
26 changes: 26 additions & 0 deletions .github/workflows/accessibility-alt-text-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Accessibility Alt Text Bot

on:
issue_comment:
types:
- created
- edited
issues:
types:
- edited
- opened
pull_request:
types:
- edited
- opened

permissions:
issues: write
pull-requests: write

jobs:
accessibility_alt_text_bot:
if: ${{ !endsWith(github.actor, '[bot]') }}
runs-on: ubuntu-latest
steps:
- uses: github/accessibility-alt-text-bot@v1.5.0
2 changes: 1 addition & 1 deletion .github/workflows/lint-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- run: pnpm run lint:md
- run: pnpm run lint:md-full
14 changes: 14 additions & 0 deletions .github/workflows/lint-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint Packages

on:
pull_request:
workflow_dispatch:
workflow_call:

jobs:
lint_packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- run: pnpm run lint:packages
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Prettier
name: Lint Yaml

on:
pull_request:
workflow_dispatch:
workflow_call:

jobs:
lint_prettier:
lint_yaml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- run: pnpm run lint:prettier
- run: pnpm run lint:yaml
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@ concurrency:
jobs:
lint_js:
uses: ./.github/workflows/lint-js.yml
lint_knip_dev:
uses: ./.github/workflows/lint-knip-dev.yml
lint_knip_prod:
uses: ./.github/workflows/lint-knip-prod.yml
lint_markdown:
uses: ./.github/workflows/lint-markdown.yml
lint_packages:
uses: ./.github/workflows/lint-packages.yml
lint_spelling:
uses: ./.github/workflows/lint-spelling.yml
lint_prettier:
uses: ./.github/workflows/lint-prettier.yml
test:
lint_yaml:
uses: ./.github/workflows/lint-yaml.yml
test_js:
uses: ./.github/workflows/test-js.yml
# FIXME: Type check fails in CI - disable until fixed.
# type_check:
Expand All @@ -36,9 +40,10 @@ jobs:
- lint_js
- lint_knip_prod
- lint_markdown
- lint_packages
- lint_spelling
- lint_prettier
- test
- lint_yaml
- test_js
# - type_check
runs-on: ubuntu-latest
steps:
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ jobs:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5.4.0
- uses: amannn/action-semantic-pull-request@v5.5.3
env:
GITHUB_TOKEN: ${{ github.token }}
with:
types: |
feat
fix
perf
refactor
style
docs
test
build
ci
chore
requireScope: false
subjectPattern: ^(?![A-Z]).+$ # Don't start with an uppercase character.
subjectPatternError: |
The subject "{subject}" should not start with an uppercase character.
headerPattern: '^(\w*)(?:\(([\w$.\-*/ ]*)\))?!?: (.*)$'
headerPatternCorrespondence: type, scope, subject
7 changes: 7 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ on:
push:
branches:
- main
paths:
- .github/labels.yml
workflow_dispatch:

permissions:
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: micnncim/action-label-syncer@v1
with:
manifest: .github/labels.yml
env:
GITHUB_TOKEN: ${{ github.token }}
2 changes: 1 addition & 1 deletion .github/workflows/test-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- run: pnpm run test
- run: pnpm run test:js-run
- uses: codecov/codecov-action@v4
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Type Check

on:
# pull_request:
pull_request:
workflow_dispatch:
workflow_call:

jobs:
type-check:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- run: pnpm run type-check
- run: pnpm run typecheck
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec commitlint --edit $1
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec lint-staged
Loading

0 comments on commit 3ee22ca

Please sign in to comment.