mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-03-10 07:44:57 +08:00
chore: upgrade docs to yarn 2.0
This commit is contained in:
parent
d4639e2d70
commit
b52e33a517
20
.github/workflows/build-test-docs.yml
vendored
20
.github/workflows/build-test-docs.yml
vendored
@ -20,11 +20,29 @@ jobs:
|
||||
- name: Install logo assets
|
||||
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
3
docs/.gitignore
vendored
@ -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
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
3
docs/.yarnrc.yml
Normal file
@ -0,0 +1,3 @@
|
||||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-3.4.1.cjs
|
@ -49,5 +49,6 @@
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.14"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@3.4.1"
|
||||
}
|
||||
|
18577
docs/yarn.lock
18577
docs/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user