feat: migrate to use pnpm and add sitemapPlugin (#4043)

* migrate off yarn to pnpm

add `vue` and `@vuepress/client` as peer-dependencies

stick with node 20

update @vuepress/plugin-docsearch dep with `npx vp-update`

add vuepress-plugin-sitemap2 plugin

Signed-off-by: Rui Chen <rui@chenrui.dev>

* replace yarn.lock with pnpm-lock.yaml for labeler

Signed-off-by: Rui Chen <rui@chenrui.dev>

* replace yarnDedupeHighest with pnpmDedupe for renovate

Signed-off-by: Rui Chen <rui@chenrui.dev>

* update website-lint job

Signed-off-by: Rui Chen <rui@chenrui.dev>

---------

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen
2024-02-08 21:26:50 +01:00
committed by GitHub
parent dffae125fe
commit aaa6ac078a
10 changed files with 2389 additions and 1846 deletions

2
.github/labeler.yml vendored
View File

@@ -42,4 +42,4 @@ website:
- changed-files:
- any-glob-to-any-file: 'runatlantis.io/.vuepress/**/*'
- any-glob-to-any-file: 'package.json'
- any-glob-to-any-file: 'yarn.lock'
- any-glob-to-any-file: 'pnpm-lock.yaml'

View File

@@ -12,7 +12,7 @@
postUpdateOptions: [
"gomodTidy",
"gomodUpdateImportPaths",
"yarnDedupeHighest",
"pnpmDedupe",
],
// needed so e2e tests do not stomp over each other
prHourlyLimit: 1,

View File

@@ -33,7 +33,7 @@ jobs:
filters: |
src:
- '**.js'
- 'yarn.lock'
- 'pnpm-lock.yaml'
- 'package.json'
- '.github/workflows/website.yml'
@@ -48,24 +48,23 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version-file: .node-version
node-version: 20
- name: run http-server
env:
# renovate: datasource=github-releases depName=raviqqe/muffet
MUFFET_VERSION: 2.9.3
run: |
npm install -g yarn
# install raviqqe/muffet to check for broken links.
curl -Ls https://github.com/raviqqe/muffet/releases/download/v${MUFFET_VERSION}/muffet_linux_amd64.tar.gz | tar -xz
# build the site
yarn && yarn website:build
# build site
pnpm install
pnpm website:build
# run http-server for muffet to check the links
# start http-server for integration testing
npx http-server runatlantis.io/.vuepress/dist &
- name: wait until server listened