@@ -20,18 +20,15 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.merge_commit_sha }}
|
||||
fetch-depth: 0
|
||||
- name: 准备 Java 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '17'
|
||||
cache: maven
|
||||
- name: 准备 Node.js 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: npm
|
||||
cache-dependency-path: JC-Salon-Frontend/package-lock.json
|
||||
- name: 检查构建工具链
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
java -version 2>&1 | grep -q '17\.'
|
||||
node --version | grep -q '^v20\.'
|
||||
mvn --version > "$RUNNER_TEMP/maven-version.txt"
|
||||
grep -q 'Java version: 17\.' "$RUNNER_TEMP/maven-version.txt"
|
||||
pwsh --version
|
||||
- name: 构建 Salon 发布包
|
||||
shell: pwsh
|
||||
run: >-
|
||||
|
||||
Reference in New Issue
Block a user