Skip to content

Commit

Permalink
fix(setup): improve GitHub Actions flow made with (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyankatsu0105 authored and shipjs committed Jun 22, 2020
1 parent 2948132 commit 066ff50
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/shipjs/src/step/setup/CI/addGitHubActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,18 @@ function getBaseConfig({ baseBranch }) {
return ejs.render(
`name: Ship js trigger
on:
push:
branches:
- <%= baseBranch %>
pull_request:
types:
- closed
jobs:
build:
name: Release
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: <%= baseBranch %>
- uses: actions/setup-node@v1
with:
Expand Down

0 comments on commit 066ff50

Please sign in to comment.