This commit is contained in:
@@ -9,24 +9,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Debug runner
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
run: |
|
||||||
|
echo "runner ok"
|
||||||
- name: Setup Node.js
|
node -v
|
||||||
uses: https://gitea.com/actions/setup-node@v4
|
npm -v
|
||||||
with:
|
|
||||||
node-version: "20"
|
|
||||||
|
|
||||||
- name: Cache npm dependencies
|
|
||||||
uses: https://gitea.com/actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-node-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm install
|
|
||||||
|
|
||||||
- name: Build Hexo
|
|
||||||
run: npm run build
|
|
||||||
|
|||||||
Reference in New Issue
Block a user