mirror of
https://github.com/wavetermdev/waveterm-docs.git
synced 2026-08-05 13:45:23 -07:00
fix setup-node
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
|
|
||||||
|
env:
|
||||||
|
NODE_VERSION: 22
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -18,8 +21,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: ${{env.NODE_VERSION}}
|
||||||
cache: yarn
|
|
||||||
- name: Install yarn
|
- name: Install yarn
|
||||||
run: corepack enable && yarn install
|
run: corepack enable && yarn install
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
name: Test deployment
|
name: Test deployment
|
||||||
|
|
||||||
|
env:
|
||||||
|
NODE_VERSION: 22
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
@@ -17,8 +20,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: ${{env.NODE_VERSION}}
|
||||||
cache: yarn
|
|
||||||
- name: Install yarn
|
- name: Install yarn
|
||||||
run: corepack enable && yarn install
|
run: corepack enable && yarn install
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user