refactor: remove wait-for-npm job from build workflow (#81)

This commit is contained in:
samanhappy
2025-05-13 13:05:26 +08:00
committed by GitHub
parent 37c3fd9e06
commit 30895c4b9a

View File

@@ -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: |