chore: upgrade docs to yarn 2.0

This commit is contained in:
bd_ 2023-02-17 21:03:57 +09:00
parent d4639e2d70
commit b52e33a517
6 changed files with 11834 additions and 7645 deletions

View File

@ -21,10 +21,28 @@ jobs:
run: |
cp -Rv modular-avatar-images/img/* docs/static/img
- name: Setup yarn 2.0
run: |
corepack enable
corepack prepare yarn@stable --activate
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(cd docs; yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Build docs
run: |
cd docs
yarn install
yarn install --immutable
yarn build
- name: Upload artifact

3
docs/.gitignore vendored
View File

@ -18,3 +18,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.yarn/*
!.yarn/releases
!.yarn/releases/*

873
docs/.yarn/releases/yarn-3.4.1.cjs vendored Normal file

File diff suppressed because one or more lines are too long

3
docs/.yarnrc.yml Normal file
View File

@ -0,0 +1,3 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-3.4.1.cjs

View File

@ -49,5 +49,6 @@
},
"engines": {
"node": ">=16.14"
}
},
"packageManager": "yarn@3.4.1"
}

File diff suppressed because it is too large Load Diff