Skip to content

Commit

Permalink
chore: clean up master references in release and workflows (#104)
Browse files Browse the repository at this point in the history
* chore: update master to main branch in ci workflow

* chore: remove master branch check from release flow

* chore: remove master branch from release config
  • Loading branch information
byCedric authored Jun 22, 2021
1 parent def44e2 commit a2d9b1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: CI
on:
push:
branches: [master]
branches: [main]
pull_request:
types: [opened, synchronize]
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
if: success() && github.event.inputs.release == 'release' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
if: success() && github.event.inputs.release == 'release' && github.ref == 'refs/heads/main'
run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const rules = [
const sortMap = Object.fromEntries(rules.map((rule, index) => [rule.title, index]));

module.exports = {
branches: ['main', 'master'],
branches: ['main'],
tagFormat: '${version}',
plugins: [
['@semantic-release/commit-analyzer', {
Expand Down

0 comments on commit a2d9b1c

Please sign in to comment.