diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 4a1e503..f00a3ab 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -2,4 +2,4 @@ #patreon: cmfcmf ko_fi: cmfcmf custom: - - https://www.buymeacoffee.com/cmfcmf \ No newline at end of file + - https://www.buymeacoffee.com/cmfcmf diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index db6bc6e..af8a615 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -8,4 +8,4 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: wagoid/commitlint-github-action@v5 \ No newline at end of file + - uses: wagoid/commitlint-github-action@v5 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aaa31bb..2bf57a6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,33 +33,33 @@ jobs: - "canary" steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" - - run: npm ci - - run: npm run lint + - run: npm ci + - run: npm run lint - - run: npm install --workspaces --save-dev '@docusaurus/core@${{ matrix.docusaurus-version }}' '@docusaurus/preset-classic@${{ matrix.docusaurus-version }}' '@docusaurus/module-type-aliases@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-blog@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-docs@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-pages@${{ matrix.docusaurus-version }}' '@docusaurus/theme-common@${{ matrix.docusaurus-version }}' '@docusaurus/theme-classic@${{ matrix.docusaurus-version }}' '@docusaurus/types@${{ matrix.docusaurus-version }}' - - run: npm dedupe + - run: npm install --workspaces --save-dev '@docusaurus/core@${{ matrix.docusaurus-version }}' '@docusaurus/preset-classic@${{ matrix.docusaurus-version }}' '@docusaurus/module-type-aliases@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-blog@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-docs@${{ matrix.docusaurus-version }}' '@docusaurus/plugin-content-pages@${{ matrix.docusaurus-version }}' '@docusaurus/theme-common@${{ matrix.docusaurus-version }}' '@docusaurus/theme-classic@${{ matrix.docusaurus-version }}' '@docusaurus/types@${{ matrix.docusaurus-version }}' + - run: npm dedupe - - run: npm run build + - run: npm run build - - run: npm run test + - run: npm run test - # Install OS dependencies - # Run `apt update` beforehand to avoid 404 Not Found errors during apt install. - - run: sudo apt update - if: runner.os == 'Linux' - - run: npx playwright install-deps - # Install Browsers - - run: npx playwright install - - run: npm run test:e2e -- -- --browser=all --forbid-only + # Install OS dependencies + # Run `apt update` beforehand to avoid 404 Not Found errors during apt install. + - run: sudo apt update + if: runner.os == 'Linux' + - run: npx playwright install-deps + # Install Browsers + - run: npx playwright install + - run: npm run test:e2e -- -- --browser=all --forbid-only - # TODO: Cannot run browser tests for these for now. - - run: npm run build -w example-docs -- --config docusaurus.config.noTrailingSlash.js - - run: npm run build -w example-docs -- --config docusaurus.config.subDirectory.js - - run: npm run build -w example-docs -- --config docusaurus.config.noTrailingSlashSubdirectory.js + # TODO: Cannot run browser tests for these for now. + - run: npm run build -w example-docs -- --config docusaurus.config.noTrailingSlash.js + - run: npm run build -w example-docs -- --config docusaurus.config.subDirectory.js + - run: npm run build -w example-docs -- --config docusaurus.config.noTrailingSlashSubdirectory.js diff --git a/package.json b/package.json index 6a404f4..a597433 100644 --- a/package.json +++ b/package.json @@ -25,14 +25,14 @@ "serve": "turbo serve", "test": "turbo test", "test:e2e": "turbo test:e2e", - "lint:style": "prettier --check **/*.{js,jsx,ts,tsx,json,css,scss,md,html}", + "lint:style": "prettier --check .", "lint:dependencies": "syncpack list-mismatches", - "format:style": "prettier --write **/*.{js,jsx,ts,tsx,json,css,scss,md,html}", + "format:style": "prettier --write .", "format:dependencies": "syncpack fix-mismatches", "release": "bash scripts/release.sh" }, "lint-staged": { - "**/*.{js,jsx,ts,tsx,json,css,scss,md,html}": [ + ".": [ "prettier --write" ] },