Skip to content

Commit

Permalink
refactor: trigger release workflow on push instead of pull_request me…
Browse files Browse the repository at this point in the history
…rge (#36)

affects: @medly/create-component, @medly/create-module
  • Loading branch information
gmukul01 authored Aug 3, 2021
1 parent 91a6d3c commit d7cd921
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: Release

on:
pull_request:
push:
branches:
- master
types: [closed]

jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"yes": true,
"conventionalCommits": true,
"createRelease": "github",
"message": "chore: update changelog and publish packages"
"message": "chore: update changelog and publish packages [skip ci]"
}
},
"npmClient": "yarn",
Expand Down
4 changes: 1 addition & 3 deletions packages/component/template/.github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: Release

on:
pull_request:
push:
branches:
- main
types: [closed]

jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: Release

on:
pull_request:
push:
branches:
- main
types: [closed]

jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand Down

0 comments on commit d7cd921

Please sign in to comment.