Skip to content

Commit a2d9b1c

Browse files
authored
chore: clean up master references in release and workflows (#104)
* chore: update master to main branch in ci workflow * chore: remove master branch check from release flow * chore: remove master branch from release config
1 parent def44e2 commit a2d9b1c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: CI
33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
pull_request:
77
types: [opened, synchronize]
88
jobs:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
- name: Create release
48-
if: success() && github.event.inputs.release == 'release' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
48+
if: success() && github.event.inputs.release == 'release' && github.ref == 'refs/heads/main'
4949
run: yarn semantic-release
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const rules = [
1111
const sortMap = Object.fromEntries(rules.map((rule, index) => [rule.title, index]));
1212

1313
module.exports = {
14-
branches: ['main', 'master'],
14+
branches: ['main'],
1515
tagFormat: '${version}',
1616
plugins: [
1717
['@semantic-release/commit-analyzer', {

0 commit comments

Comments
 (0)