Skip to content

Commit 64b649f

Browse files
Merge pull request #100 from gridsome/chore/upgrade-shipjs
chore: upgrade shipjs
2 parents e676e84 + 8762fe6 commit 64b649f

File tree

4 files changed

+424
-416
lines changed

4 files changed

+424
-416
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: Release
22
on:
3-
push:
4-
branches:
5-
- master
3+
pull_request:
4+
types:
5+
- closed
66
jobs:
77
release:
88
name: Release
99
runs-on: ubuntu-latest
10+
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
1011
steps:
1112
- uses: actions/checkout@v2
1213
with:
13-
ref: master
14+
ref: develop
1415
fetch-depth: 0
1516

1617
- uses: actions/cache@v1
@@ -30,10 +31,8 @@ jobs:
3031
- name: Install dependencies
3132
if: steps.cache.outputs.cache-hit != 'true'
3233
run: npm ci
33-
34-
- run: git fetch
3534

36-
- run: npm run release:trigger
35+
- run: npx shipjs trigger
3736
env:
3837
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3938
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)