File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 22 push :
33 tags :
44 - ' v*'
5+ repository_dispatch :
6+ types : [release]
57
68name : Release
79
@@ -17,13 +19,15 @@ jobs:
1719 - name : Get Yarn Cache Directory
1820 id : yarn-cache
1921 run : echo "::set-output name=dir::$(yarn cache dir)"
22+ if : github.event_name != 'repository_dispatch'
2023 - name : Cache node dependencies
2124 uses : actions/cache@v1
2225 with :
2326 path : ${{ steps.yarn-cache.outputs.dir }}
2427 key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
2528 restore-keys : |
2629 ${{ runner.os }}-yarn-
30+ if : github.event_name != 'repository_dispatch'
2731 - name : Install Package dependencies
2832 run : yarn install
2933 - name : Test
3943 release :
4044 name : Publish Package
4145 runs-on : ubuntu-latest
46+ if : github.event_name != 'repository_dispatch'
4247 strategy :
4348 matrix :
4449 target : ['npm']
@@ -111,13 +116,15 @@ jobs:
111116 - name : Get Yarn Cache Directory
112117 id : yarn-cache
113118 run : echo "::set-output name=dir::$(yarn cache dir)"
119+ if : github.event_name != 'repository_dispatch'
114120 - name : Cache node dependencies
115121 uses : actions/cache@v1
116122 with :
117123 path : ${{ steps.yarn-cache.outputs.dir }}
118124 key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
119125 restore-keys : |
120126 ${{ runner.os }}-yarn-
127+ if : github.event_name != 'repository_dispatch'
121128 - name : Install Package dependencies
122129 run : yarn install
123130 - name : Build
@@ -146,6 +153,7 @@ jobs:
146153 name : Upload build files
147154 needs : test
148155 runs-on : ubuntu-latest
156+ if : github.event_name != 'repository_dispatch'
149157 steps :
150158 - name : Checkout
151159 uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments