Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,24 @@ jobs:
steps:
- uses: actions/checkout@v5

- name: Setup yarn
- name: Enable Corepack
run: corepack enable

- name: Setup pnpm
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'yarn'
cache-dependency-path: docs/yarn.lock
cache: 'pnpm'
cache-dependency-path: docs/pnpm-lock.yaml

- name: Install npm modules
run: yarn
- name: Install pnpm modules
run: pnpm i
working-directory: docs

- name: Run tests
run: yarn test-check
run: pnpm test-check
working-directory: docs

- name: Build docs
run: SITE_URL=https://docs.bracketapp.nl yarn build
run: SITE_URL=https://docs.bracketapp.nl pnpm build
working-directory: docs
15 changes: 9 additions & 6 deletions .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,22 @@ jobs:
steps:
- uses: actions/checkout@v5

- name: Setup yarn
- name: Enable Corepack
run: corepack enable

- name: Setup pnpm
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'yarn'
cache-dependency-path: docs/yarn.lock
cache: 'pnpm'
cache-dependency-path: docs/pnpm-lock.yaml

- name: Install npm modules
run: yarn
- name: Install pnpm modules
run: pnpm i
working-directory: docs

- name: Build docs
run: SITE_URL=https://docs.bracketapp.nl yarn build
run: SITE_URL=https://docs.bracketapp.nl pnpm build
working-directory: docs

- name: Deploy to GitHub Pages
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Nextra and [shadcn-landing-page](https://github.com/leoMirandaa/shadcn-landing-p
Run development server:

```bash
yarn dev
pnpm dev
```

Open <http://localhost:3000> with your browser to see the result.
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"start": "next start",
"prettier:check": "prettier --check \"**/*.{js,jsx,ts,tsx}\"",
"prettier:write": "prettier --write \"**/*.{js,jsx,ts,tsx}\"",
"test": "yarn run prettier:write && yarn run markdownlint-cli2 --fix",
"test-check": "yarn run prettier:check && yarn run markdownlint-cli2 --config .markdownlint-cli2.mjs",
"test": "pnpm run prettier:write && pnpm markdownlint-cli2 --fix",
"test-check": "pnpm run prettier:check && pnpm markdownlint-cli2 --config .markdownlint-cli2.mjs",
"lint:markdown": "markdownlint-cli2",
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind && next-sitemap"
},
Expand Down
Loading