Skip to content

Commit

Permalink
ci: 升级 node 为 v20
Browse files Browse the repository at this point in the history
  • Loading branch information
maomao1996 committed Mar 22, 2024
1 parent 3b34dae commit f2a8177
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
build-and-deploy:
# 服务器环境:最新版 ubuntu
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
# 拉取代码
- name: Checkout
Expand All @@ -40,10 +43,10 @@ jobs:
version: 8

# 设置 node 版本
- name: Set node version to 18
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

# 打包静态文件
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build.environment]
NODE_VERSION = "18"
NODE_VERSION = "20"

[build]
publish = "dist"
Expand Down

0 comments on commit f2a8177

Please sign in to comment.