diff --git a/.github/workflows/release.yml b/.github/workflows/npm-release.yml similarity index 97% rename from .github/workflows/release.yml rename to .github/workflows/npm-release.yml index 1584325fb3..575c482168 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/npm-release.yml @@ -209,11 +209,7 @@ jobs: target_branch: master github_token: ${{ github.token }} - - name: Sleep 120s, wait for npm cache - uses: juliangruber/sleep-action@v1 - with: - time: 120s - + # - name: Create Docker Release # # if: steps.version.outputs.is_stable == 'true' # id: create_release @@ -228,9 +224,3 @@ jobs: # release_name: Release v${{ steps.branch-name.outputs.tag }} # draft: false # prerelease: false - - - name: Sync NpmMirror - env: - CI: false - run: | - yarn sync diff --git a/.github/workflows/npm-sync.yml b/.github/workflows/npm-sync.yml new file mode 100644 index 0000000000..8350e4ed17 --- /dev/null +++ b/.github/workflows/npm-sync.yml @@ -0,0 +1,22 @@ +on: + workflow_run: + workflows: [Release NPM] + types: + - completed + +jobs: + sync: + runs-on: ubuntu-latest + steps: + + - name: Sleep 120s, wait for npm cache + uses: juliangruber/sleep-action@v1 + with: + time: 120s + + - name: Sync cnpm + env: + CI: true + run: | + yarn sync +