mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-24 02:39:19 -05:00
refactor: remove wait-for-npm job from build workflow (#81)
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -6,19 +6,6 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# 等待 npm 发布完成
|
|
||||||
wait-for-npm:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
steps:
|
|
||||||
- name: Wait for NPM publish
|
|
||||||
uses: lewagon/wait-on-check-action@v1.3.1
|
|
||||||
with:
|
|
||||||
ref: ${{ github.ref }}
|
|
||||||
check-name: 'publish-npm'
|
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
wait-interval: 10
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: wait-for-npm
|
needs: wait-for-npm
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -30,7 +17,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# 备份:更新版本号(以防 npm-publish 失败)
|
|
||||||
- name: Update version from tag
|
- name: Update version from tag
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user