Skip to content

Commit

Permalink
github workflow: 拆分 npm sync
Browse files Browse the repository at this point in the history
  • Loading branch information
hotlong committed Oct 10, 2023
1 parent 36a4e08 commit 7b6dc80
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
22 changes: 22 additions & 0 deletions .github/workflows/npm-sync.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7b6dc80

Please sign in to comment.