Skip to content

Commit

Permalink
chore: only trigger release when I actually want it
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Mar 18, 2021
1 parent ce1b3c8 commit f018e51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:

jobs:
test:
if: "!contains(github.event.head_commit.message, 'ci skip')"

strategy:
matrix:
os: [ubuntu-latest]
Expand Down Expand Up @@ -46,6 +48,7 @@ jobs:

- name: Release
run: pnpx semantic-release --branches main
if: "contains(github.event.head_commit.message, 'publish release')"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit f018e51

Please sign in to comment.