ci: setup pnpm
This commit is contained in:
parent
7b796c4147
commit
5dd83c81ea
1 changed files with 11 additions and 16 deletions
27
.github/workflows/depoly.yml
vendored
27
.github/workflows/depoly.yml
vendored
|
@ -11,23 +11,18 @@ jobs:
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
submodules: true # Checkout private submodules(themes or something else).
|
submodules: true # Checkout private submodules(themes or something else).
|
||||||
|
|
||||||
# Caching dependencies to speed up workflows. (GitHub will remove any cache entries that have not been accessed in over 7 days.)
|
- uses: pnpm/action-setup@v2
|
||||||
- name: Cache node modules
|
name: Setup Pnpm
|
||||||
uses: actions/cache@v2
|
|
||||||
id: cache
|
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
version: 8
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
||||||
restore-keys: |
|
- name: Setup Node
|
||||||
${{ runner.os }}-node-
|
uses: actions/setup-node@v3
|
||||||
- run: 'curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -'
|
with:
|
||||||
- run: 'echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list'
|
node-version: "18"
|
||||||
- run: "sudo apt update && sudo apt install yarn"
|
cache: pnpm
|
||||||
|
cache-dependency-path: '**/pnpm-lock.yaml'
|
||||||
- name: Install Dependencies
|
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
# Deploy hexo blog website.
|
# Deploy hexo blog website.
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
|
Loading…
Reference in a new issue