From 581de6b3bbeb00dc356dfe231e31acedf784be6b Mon Sep 17 00:00:00 2001 From: Keegan Campbell Date: Tue, 10 Jan 2023 10:40:53 -0800 Subject: [PATCH] Default branch rename (#355) * Default branch rename * Add main branch release config --- .github/pull_request_template.md | 14 +++++++------- .github/workflows/codeql-analysis.yml | 10 +++++----- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- package.json | 9 +++++++++ 5 files changed, 23 insertions(+), 14 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index dc0794a..e2327ae 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -11,18 +11,18 @@ Resolves #ISSUE_NUMBER ### Before the change? -* +* ### After the change? -* +* ### Other information -* +* ---- @@ -36,20 +36,20 @@ Resolves #ISSUE_NUMBER ### Does this introduce a breaking change? -Please see our docs on [breaking changes](https://github.com/octokit/.github/blob/master/community/breaking_changes.md) to help! +Please see our docs on [breaking changes](https://github.com/octokit/.github/blob/main/community/breaking_changes.md) to help! - [ ] Yes (Please add the `Type: Breaking change` label) - [ ] No -If `Yes`, what's the impact: +If `Yes`, what's the impact: * N/A ### Pull request type - - + + Please add the corresponding label for change this PR introduces: - Bugfix: `Type: Bug` diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b5462be..a49ec10 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ "master" ] + branches: [ "main" ] pull_request: # The branches below must be a subset of the branches above - branches: [ "master" ] + branches: [ "main" ] schedule: - cron: '30 23 * * 2' @@ -48,11 +48,11 @@ jobs: # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. - + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality - + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild @@ -61,7 +61,7 @@ jobs: # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # If the Autobuild fails above, remove it and uncomment the following three lines. + # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # - run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77e232d..0022b46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Release "on": push: branches: - - master + - main jobs: release: name: release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 160e5cf..8f3548f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Test "on": push: branches: - - master + - main - dependabot/npm_and_yarn/** pull_request: types: diff --git a/package.json b/package.json index b5bdde4..8a7ff10 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,15 @@ ] }, "release": { + "branches": [ + "+([0-9]).x", + "main", + "next", + { + "name": "beta", + "prerelease": true + } + ], "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator",