.github/workflows/npm-sync.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |