mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-05-21 02:29:01 +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
|
- name: Install logo assets
|
||||||
run: |
|
run: |
|
||||||
cp -Rv modular-avatar-images/img/* docs/static/img
|
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
|
- name: Build docs
|
||||||
run: |
|
run: |
|
||||||
cd docs
|
cd docs
|
||||||
yarn install
|
yarn install --immutable
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
3
docs/.gitignore
vendored
3
docs/.gitignore
vendored
@ -18,3 +18,6 @@
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.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": {
|
"engines": {
|
||||||
"node": ">=16.14"
|
"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…
x
Reference in New Issue
Block a user