Skip to content

Commit 550d159

Browse files
committed
改回 npm
1 parent 50380ea commit 550d159

File tree

3 files changed

+4899
-3878
lines changed

3 files changed

+4899
-3878
lines changed

.github/workflows/hexo-deploy.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2121

2222
steps:
23-
- uses: actions/checkout@v3
24-
- name: Use Node.js 21.x
25-
uses: pnpm/action-setup@v4
26-
with:
27-
version: 10
28-
- run: sudo apt-get update && sudo apt-get install -y nasm autoconf automake libtool libpng-dev pkg-config build-essential
29-
- run: pnpm i && npx hexo clean && npx hexo g --config _config-deploy.yml
30-
- name: Deploy
31-
uses: peaceiris/actions-gh-pages@v3
32-
with:
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: ./public
23+
- uses: actions/checkout@v3
24+
- name: Use Node.js 21.x
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: 21.x
28+
cache: 'npm'
29+
- run: npm i && npx hexo clean && npx hexo g --config _config-deploy.yml
30+
- name: Deploy
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./public

0 commit comments

Comments
 (0)