@@ -25,10 +25,6 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.release_sha }}
|
||||
- name: 准备 Node.js 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
- name: 发布并校验 Salon 生产 Nacos
|
||||
shell: bash
|
||||
env:
|
||||
@@ -40,6 +36,13 @@ jobs:
|
||||
NACOS_DR_USERNAME: ${{ secrets.NACOS_DR_USERNAME }}
|
||||
NACOS_DR_PASSWORD: ${{ secrets.NACOS_DR_PASSWORD }}
|
||||
run: node .gitea/scripts/publish-nacos.mjs
|
||||
- name: 检查发布工具链
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
java -version 2>&1 | grep -q '17\.'
|
||||
node --version | grep -q '^v20\.'
|
||||
pwsh --version
|
||||
- name: 下载已审核发布包
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
|
||||
@@ -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