diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 65f86ad..94dce7c 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -8,7 +8,7 @@ name: debug on: push: - branches: ['master'] + branches: ['main'] tags: ['v[0-9]+.[0-9]+.[0-9]+'] pull_request: types: diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 00d699a..8e2e8cd 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -8,7 +8,7 @@ name: default on: push: - branches: ['master'] + branches: ['main'] tags: ['v[0-9]+.[0-9]+.[0-9]+'] pull_request: types: diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml index bcde565..f0a6daf 100644 --- a/.github/workflows/issue.yml +++ b/.github/workflows/issue.yml @@ -31,21 +31,21 @@ jobs: runs-on: ubuntu-latest steps: - name: toolkit label bug - uses: 'npm/.github/actions/default@master' + uses: 'npm/.github/actions/default@main' with: regex: '^(\[BUG\])' subject: '${{ github.event.issue.title }}' input: 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "bug" ]' token: '${{ secrets.GITHUB_TOKEN }}' - name: toolkit label feature - uses: 'npm/.github/actions/default@master' + uses: 'npm/.github/actions/default@main' with: regex: '^(\[FEATURE\])' subject: '${{ github.event.issue.title }}' input: 'issues | addLabels | context.repo | issue_number:${{ github.event.issue.number }} | labels:[ "feature" ]' token: '${{ secrets.GITHUB_TOKEN }}' - name: toolkit label chore - uses: 'npm/.github/actions/default@master' + uses: 'npm/.github/actions/default@main' with: regex: '^(\[CHORE\])' subject: '${{ github.event.issue.title }}' @@ -53,7 +53,7 @@ jobs: token: '${{ secrets.GITHUB_TOKEN }}' - name: toolkit label question - uses: 'npm/.github/actions/default@master' + uses: 'npm/.github/actions/default@main' with: regex: '^(\[QUESTION\])' subject: '${{ github.event.issue.title }}' diff --git a/.github/workflows/pulls.yml b/.github/workflows/pulls.yml index 4d68784..1aa0ff5 100644 --- a/.github/workflows/pulls.yml +++ b/.github/workflows/pulls.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: toolkit label bug - uses: 'npm/.github/actions/default@master' + uses: 'npm/.github/actions/default@main' if: ${{ github.event.pull_request.head.repo.fork == false }} with: regex: '^(fix)(\([\w\-]+\))?(\!)?(\:)' @@ -38,7 +38,7 @@ jobs: input: 'issues | addLabels | context.repo | issue_number:${{ github.event.pull_request.number }} | labels:[ "bug" ]' token: '${{ secrets.GITHUB_TOKEN }}' - name: toolkit label feature - uses: 'npm/.github/actions/default@master' + uses: 'npm/.github/actions/default@main' if: ${{ github.event.pull_request.head.repo.fork == false }} with: regex: '^(feat)(\([\w\-]+\))?(\!)?(\:)' @@ -46,7 +46,7 @@ jobs: input: 'issues | addLabels | context.repo | issue_number:${{ github.event.pull_request.number }} | labels:[ "feature" ]' token: '${{ secrets.GITHUB_TOKEN }}' - name: toolkit label chore - uses: 'npm/.github/actions/default@master' + uses: 'npm/.github/actions/default@main' if: ${{ github.event.pull_request.head.repo.fork == false }} with: regex: '^(chore)(\([\w\-]+\))?(\!)?(\:)' @@ -55,7 +55,7 @@ jobs: token: '${{ secrets.GITHUB_TOKEN }}' - name: toolkit assignees actor - uses: 'npm/.github/actions/default@master' + uses: 'npm/.github/actions/default@main' if: ${{ github.event.pull_request.head.repo.fork == false }} with: input: 'issues | addAssignees | context.repo | issue_number:${{ github.event.pull_request.number }} | assignees:[ "${{ github.actor }}" ]' diff --git a/actions/default/action.yml b/actions/default/action.yml index a688961..7650b38 100644 --- a/actions/default/action.yml +++ b/actions/default/action.yml @@ -1,6 +1,6 @@ --- ##### -# https://github.com/actions/toolkit/blob/master/docs/container-action.md#define-metadata +# https://github.com/actions/toolkit/blob/main/docs/container-action.md#define-metadata name: default description: default author: 'npm, Inc.' diff --git a/cloud.js b/cloud.js index a524620..fa697e7 100644 --- a/cloud.js +++ b/cloud.js @@ -1,5 +1,5 @@ module.exports = { - branches: ['master'], + branches: ['main'], tagFormat: 'v${version}', plugins: [ '@semantic-release/github', diff --git a/npm.js b/npm.js index 7e8212c..7a72c3a 100644 --- a/npm.js +++ b/npm.js @@ -1,4 +1,4 @@ module.exports = { - branches: ['master'], + branches: ['main'], tagFormat: 'v${version}' }