diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9d1812..0e05dc3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,9 @@ jobs: PREFIX_FILTER: | src/ __tests__/ - SUFFIX_FILTER: .js + SUFFIX_FILTER: | + .js + .snap FILES: | yarn.lock jest.config.js diff --git a/.github/workflows/pr_opened.yml b/.github/workflows/pr_opened.yml index bbda2c6..3645df7 100644 --- a/.github/workflows/pr_opened.yml +++ b/.github/workflows/pr_opened.yml @@ -28,6 +28,6 @@ jobs: runs-on: ubuntu-latest steps: - name: PR Labeler - uses: technote-fork/pr-labeler-action@v3 + uses: technote-space/pr-labeler-action@v3 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c505e72..00159ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,8 @@ on: push: tags: - 'v*' + repository_dispatch: + types: [release] name: Release @@ -17,6 +19,7 @@ jobs: - name: Get Yarn Cache Directory id: yarn-cache run: echo "::set-output name=dir::$(yarn cache dir)" + if: github.event_name != 'repository_dispatch' - name: Cache node dependencies uses: actions/cache@v1 with: @@ -24,6 +27,7 @@ jobs: key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- + if: github.event_name != 'repository_dispatch' - name: Install Package dependencies run: yarn install - name: Test @@ -39,6 +43,7 @@ jobs: release: name: Publish Package runs-on: ubuntu-latest + if: github.event_name != 'repository_dispatch' strategy: matrix: target: ['npm'] @@ -111,6 +116,7 @@ jobs: - name: Get Yarn Cache Directory id: yarn-cache run: echo "::set-output name=dir::$(yarn cache dir)" + if: github.event_name != 'repository_dispatch' - name: Cache node dependencies uses: actions/cache@v1 with: @@ -118,6 +124,7 @@ jobs: key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- + if: github.event_name != 'repository_dispatch' - name: Install Package dependencies run: yarn install - name: Build @@ -146,6 +153,7 @@ jobs: name: Upload build files needs: test runs-on: ubuntu-latest + if: github.event_name != 'repository_dispatch' steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index 2d4aded..8f4a83b 100644 --- a/.github/workflows/toc.yml +++ b/.github/workflows/toc.yml @@ -13,4 +13,5 @@ jobs: uses: technote-space/toc-generator@v2 with: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + API_TOKEN: ${{ secrets.GITHUB_TOKEN }} TARGET_BRANCH_PREFIX: release/ diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index bba5570..bcb0510 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -3,10 +3,12 @@ on: - cron: 0 17 * * 5 pull_request: types: [opened, synchronize, reopened, closed] + repository_dispatch: + types: [update-deps] name: Update dependencies jobs: - release: + update: name: Update npm dependencies runs-on: ubuntu-latest steps: @@ -14,6 +16,7 @@ jobs: uses: technote-space/create-pr-action@v1 with: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + API_TOKEN: ${{ secrets.GITHUB_TOKEN }} EXECUTE_COMMANDS: | npx npm-check-updates -u --packageFile package.json yarn install