diff --git a/.github/workflows/learn-github-actions.yml b/.github/workflows/learn-github-actions.yml index 70883d7..7d7dc3d 100644 --- a/.github/workflows/learn-github-actions.yml +++ b/.github/workflows/learn-github-actions.yml @@ -21,4 +21,10 @@ jobs: run: | echo "GitHub Actions | 打印所有环境变量" env - echo "${ARTIFACT_LOCATION}" \ No newline at end of file + echo "${ARTIFACT_LOCATION}" + + # 在需要的步骤中设置 Node.js 版本 + - name: 设置 Node.js 版本 + uses: actions/setup-node@v2 + with: + node-version: 16 \ No newline at end of file