Skip to content

Commit

Permalink
build(docs): migrate to pnpm (#259)
Browse files Browse the repository at this point in the history
* build(docs): migrate to pnpm

* ci: remove default shell

* fix: point to package.json
  • Loading branch information
hougesen committed Jun 10, 2024
1 parent 166858b commit ec7fb83
Show file tree
Hide file tree
Showing 6 changed files with 11,388 additions and 16,674 deletions.
43 changes: 42 additions & 1 deletion .github/workflows/validate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,46 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Run format 💎
- name: Check formatting 💎
run: npx prettier --check --cache .
lint-docs:
needs: [prettier]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [22]
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
- name: Setup node env 🏗
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: ./docs/package.json
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Cache node_modules 📦
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies 👨🏻‍💻
run: pnpm install
- name: Verify lint 👀
run: pnpm run lint
- name: Verify types
run: pnpm run typecheck
- name: Build
run: pnpm run build
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docs/.nuxt
docs/.output
docs/node_modules
docs/dist
docs/pnpm-lock.yaml
2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ logs
.env
.env.*
!.env.example

.eslintcache
Loading

0 comments on commit ec7fb83

Please sign in to comment.