Skip to content

Commit fb669e2

Browse files
Merge pull request #163 from technote-space/chore/chore-sync-workflows
chore: sync workflows
2 parents 08f9297 + 7d14846 commit fb669e2

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ jobs:
6565
PREFIX_FILTER: |
6666
src/
6767
__tests__/
68-
SUFFIX_FILTER: .js
68+
SUFFIX_FILTER: |
69+
.js
70+
.snap
6971
FILES: |
7072
yarn.lock
7173
jest.config.js

.github/workflows/pr_opened.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: PR Labeler
31-
uses: technote-fork/pr-labeler-action@v3
31+
uses: technote-space/pr-labeler-action@v3
3232
with:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ on:
22
push:
33
tags:
44
- 'v*'
5+
repository_dispatch:
6+
types: [release]
57

68
name: 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
@@ -39,6 +43,7 @@ jobs:
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

.github/workflows/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ jobs:
1313
uses: technote-space/toc-generator@v2
1414
with:
1515
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
16+
API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1617
TARGET_BRANCH_PREFIX: release/

.github/workflows/update-dependencies.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@ on:
33
- cron: 0 17 * * 5
44
pull_request:
55
types: [opened, synchronize, reopened, closed]
6+
repository_dispatch:
7+
types: [update-deps]
68

79
name: Update dependencies
810
jobs:
9-
release:
11+
update:
1012
name: Update npm dependencies
1113
runs-on: ubuntu-latest
1214
steps:
1315
- name: Update dependencies
1416
uses: technote-space/create-pr-action@v1
1517
with:
1618
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
19+
API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1720
EXECUTE_COMMANDS: |
1821
npx npm-check-updates -u --packageFile package.json
1922
yarn install

0 commit comments

Comments
 (0)