diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index d5ba490..1d0e2d8 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -14,12 +14,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
+ - name: Install pnpm
+ uses: pnpm/action-setup@v3
+ with:
+ version: latest
+
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
@@ -27,12 +31,13 @@ jobs:
- name: Checkout docs branch
uses: actions/checkout@v4
with:
- ref: "distubejs/distubejs.github.io"
+ repository: distubejs/distubejs.github.io
+ ref: gh-pages
path: "docs"
token: ${{ secrets.DISTUBE_TOKEN }}
- name: Delete old docs
- run: rm -rf docs
+ run: find "docs" -mindepth 1 -not -path ".git*" -exec rm -rf {} +
- name: Generate documentation
run: pnpm run docs
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 9079bbe..e09d9c2 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -12,12 +12,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
+ - name: Install pnpm
+ uses: pnpm/action-setup@v3
+ with:
+ version: latest
+
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- cache-dependency-path: pnpm-lock.yaml
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index a5a3911..2827341 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -12,12 +12,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
+ - name: Install pnpm
+ uses: pnpm/action-setup@v3
+ with:
+ version: latest
+
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
diff --git a/README.md b/README.md
index b8ae483..39fcc51 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,6 @@
-