diff --git a/.github/workflow-settings.json b/.github/workflow-settings.json index 7cd34a6..739c0c4 100644 --- a/.github/workflow-settings.json +++ b/.github/workflow-settings.json @@ -13,5 +13,6 @@ "TOC_FOLDING": "1", "TOC_MAX_HEADER_LEVEL": "3", "TOC_TITLE": "Details", + "TOC_CREATE_PR": "true", "BRANCH_PREFIX": "release/" -} \ No newline at end of file +} diff --git a/.github/workflows/add-release-tag.yml b/.github/workflows/add-release-tag.yml index 90dd435..0499450 100644 --- a/.github/workflows/add-release-tag.yml +++ b/.github/workflows/add-release-tag.yml @@ -28,7 +28,7 @@ jobs: env: HEAD_REF: ${{ github.head_ref }} if: startsWith(github.head_ref, 'release/v') - - uses: actions/github-script@0.4.0 + - uses: actions/github-script@v3 with: github-token: ${{ secrets.ACCESS_TOKEN }} script: | @@ -39,7 +39,7 @@ jobs: sha: context.sha }) if: env.NEXT_VERSION - - uses: actions/github-script@0.4.0 + - uses: actions/github-script@v3 with: github-token: ${{ secrets.ACCESS_TOKEN }} script: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c25e17a..363d821 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,6 +139,11 @@ jobs: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - uses: actions/checkout@v2 if: env.RUNNING + - name: Check package version + uses: technote-space/package-version-check-action@v1 + with: + COMMIT_DISABLED: 1 + if: env.RUNNING - name: Set running flag run: npx can-npm-publish || echo "RUNNING=" >> $GITHUB_ENV if: env.RUNNING && matrix.target == 'npm' @@ -177,11 +182,6 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- if: env.RUNNING - - name: Check package version - uses: technote-space/package-version-check-action@v1 - with: - COMMIT_DISABLED: 1 - if: env.RUNNING - name: Install Package dependencies run: yarn install if: env.RUNNING @@ -235,7 +235,7 @@ jobs: timeout-minutes: 3 if: always() steps: - - uses: technote-space/workflow-conclusion-action@v1 + - uses: technote-space/workflow-conclusion-action@v2 - uses: 8398a7/action-slack@v3 with: status: failure diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index 27f0afa..083d208 100644 --- a/.github/workflows/toc.yml +++ b/.github/workflows/toc.yml @@ -14,10 +14,11 @@ jobs: - uses: technote-space/load-config-action@v1 with: CONFIG_FILENAME: workflow-settings.json - - uses: technote-space/toc-generator@v2 + - uses: technote-space/toc-generator@v3 with: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} TARGET_BRANCH_PREFIX: ${{ env.BRANCH_PREFIX }} FOLDING: ${{ env.TOC_FOLDING }} MAX_HEADER_LEVEL: ${{ env.TOC_MAX_HEADER_LEVEL }} TOC_TITLE: ${{ env.TOC_TITLE }} + CREATE_PR: ${{ env.TOC_CREATE_PR }}