Skip to content

Commit

Permalink
chore(build): activate the CI on push on main
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbesnier committed Aug 27, 2021
1 parent d299369 commit 491f9c4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build, Test and Deploy
on:
push:
branches:
- master
- main
- beta
pull_request:

Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
name: Release package
runs-on: ubuntu-latest
needs: [test]
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta')
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta')
steps:
- uses: actions/checkout@v2
with:
Expand Down
9 changes: 5 additions & 4 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
branches: ['main'],
plugins: [
[
'@semantic-release/commit-analyzer', {
Expand Down Expand Up @@ -54,16 +55,16 @@ module.exports = {
[
"semantic-release-npm-deprecate-old-versions", {
"rules": [
{
"rule": "supportLatest",
{
"rule": "supportLatest",
"options": {
"numberOfMajorReleases": 3,
"numberOfMinorReleases": "all",
"numberOfPatchReleases": "all"
}
},
{
"rule": "supportPreReleaseIfNotReleased",
{
"rule": "supportPreReleaseIfNotReleased",
"options": {
"numberOfPreReleases": 1,
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Forest Express Lianas dependency

[![npm package](https://badge.fury.io/js/forest-express.svg)](https://badge.fury.io/js/forest-express)
[![CI status](https://github.com/ForestAdmin/forest-express/workflows/Build,%20Test%20and%20Deploy/badge.svg?branch=master)](https://github.com/ForestAdmin/forest-express/actions)
[![CI status](https://github.com/ForestAdmin/forest-express/workflows/Build,%20Test%20and%20Deploy/badge.svg?branch=main)](https://github.com/ForestAdmin/forest-express/actions)
[![Test Coverage](https://api.codeclimate.com/v1/badges/760886d5e81ea4095e90/test_coverage)](https://codeclimate.com/github/ForestAdmin/forest-express/test_coverage)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// NOTICE: When a github "squash and merge" is performed, github add the PR link in the commit
// message using the format ` (#<PR_ID>)`. Github provide the target branch of the build,
// so authorizing 4+5 = 9 characters more on master for the max header length should work
// so authorizing 4+5 = 9 characters more on main for the max header length should work
// until we reach PR #99999.

let maxLineLength = 100;
Expand Down

0 comments on commit 491f9c4

Please sign in to comment.